web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 01 Mar 2010 16:02:22 +0100
branchstable
changeset 4738 6cca4f602486
parent 1419 7ff24154351d
permissions -rw-r--r--
fix open/close/open subnode bug #730709

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