web/data/cubicweb.bookmarks.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 16 Sep 2009 17:52:54 +0200
branch3.5
changeset 3268 e9f4ea71e696
parent 1419 7ff24154351d
permissions -rw-r--r--
3.5

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