web/data/cubicweb.bookmarks.js
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Wed, 02 Jun 2010 18:12:27 +0200
branchstable
changeset 5644 73d8a757db80
parent 1419 7ff24154351d
permissions -rw-r--r--
fix create_eid for sqlite (and bring back tests)

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