web/data/cubicweb.bookmarks.js
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Mon, 14 Dec 2009 17:54:45 +0100
branchstable
changeset 4119 85bb30fb6d9b
parent 1419 7ff24154351d
permissions -rw-r--r--
fix name error

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