web/data/cubicweb.bookmarks.js
author Sandrine Ribeau <sandrine.ribeau@logilab.fr>
Mon, 20 Apr 2009 11:22:06 -0700
changeset 1410 dc22b5461850
parent 0 b97547f5f1fa
child 1419 7ff24154351d
permissions -rw-r--r--
Remove all related to entity Card as it now has its own cube.

CubicWeb.require('ajax.js');

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