web/data/cubicweb.bookmarks.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Mar 2010 17:22:41 +0100
branchstable
changeset 4815 4ee224c4c41d
parent 1419 7ff24154351d
permissions -rw-r--r--
update test broken by fulltextindexed change on workflow entities

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