web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 04 May 2010 15:30:20 +0200
branchstable
changeset 5460 52ae8f68d9e2
parent 1419 7ff24154351d
permissions -rw-r--r--
[web/schemaviewer] fix bad call

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