web/data/cubicweb.bookmarks.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 05 Aug 2009 17:30:52 +0200
branchstable
changeset 2702 f19bc131b2d9
parent 1419 7ff24154351d
permissions -rw-r--r--
[css] fix cubicweb.css for action'selected class

CubicWeb.require('ajax.js');

function removeBookmark(beid) {
    d = asyncRemoteExec('delete_bookmark', beid);
    d.addCallback(function(boxcontent) {
	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
  	document.location.hash = '#header';
 	updateMessage(_("bookmark has been removed"));
    });
}