web/data/cubicweb.bookmarks.js
author Stephanie Marcu <stephanie.marcu@logilab.fr>
Tue, 19 Jan 2010 12:34:52 +0100
changeset 4264 273307c54b4d
parent 1419 7ff24154351d
permissions -rw-r--r--
update selectors.py: change entity.schema with entity._cw.vreg.schema

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"));
    });
}