web/data/cubicweb.bookmarks.js
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 20 May 2009 22:28:45 +0200
changeset 1886 f0e28ddba7c5
parent 1419 7ff24154351d
permissions -rw-r--r--
[views] add pie chart views with google chart / GChartWrapper

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