web/data/cubicweb.bookmarks.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 19 May 2009 13:08:51 +0200 (2009-05-19)
branchstable
changeset 1862 94dc8ccd320b
parent 1419 7ff24154351d
permissions -rw-r--r--
#343322: should generate IS NULL in sql w/ None values in substitution
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"));
    });
}