web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 22 Dec 2009 13:43:24 +0100
branchstable
changeset 4179 3a0b2f14e17b
parent 1419 7ff24154351d
permissions -rw-r--r--
only give extra_args if there is something to be fed (breaks some db connectors otherwise)

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