web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 15 Apr 2010 16:14:23 +0200
branchstable
changeset 5284 ad922b7449aa
parent 1419 7ff24154351d
permissions -rw-r--r--
[doc/book] rework the templates chapter (wipe out horrible example, talk more about structure)

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