web/data/cubicweb.bookmarks.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 19 Mar 2010 09:08:00 +0100
changeset 4954 96f67c5be0e6
parent 1419 7ff24154351d
permissions -rw-r--r--
[security] experimental rqlst cache for read security: to activate using a 'security-rqlst-cache' flag in transaction data when you'll issue a lot of identic queries with only kwargs varying

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