web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 01 Sep 2009 16:42:57 +0200
branch3.5
changeset 3075 e9b7cd2e9012
parent 1419 7ff24154351d
permissions -rw-r--r--
allow treeview to work correctly in a tab #345293

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