web/data/cubicweb.bookmarks.js
author sylvain.thenault@logilab.fr
Thu, 14 May 2009 12:52:27 +0200
changeset 1818 1c0d83acb340
parent 1419 7ff24154351d
permissions -rw-r--r--
merge

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