web/data/cubicweb.bookmarks.js
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Sat, 30 May 2009 00:42:18 +0200
changeset 2016 a6638de6d4da
parent 1419 7ff24154351d
permissions -rw-r--r--
[views] reindent web/facet.py

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