web/data/cubicweb.bookmarks.js
author Sandrine Ribeau <sandrine.ribeau@logilab.fr>
Thu, 02 Apr 2009 11:50:21 -0700
changeset 1223 3e3d84e8fb67
parent 0 b97547f5f1fa
child 1419 7ff24154351d
permissions -rw-r--r--
[doc] Adds id to be able to refer to each part.

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