web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 08 Jul 2009 19:02:29 +0200
branchstable
changeset 2330 8c70ca715fe9
parent 1419 7ff24154351d
permissions -rw-r--r--
[reledit] have a link-free landing zone for mouse-clicks (closes #343544)

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