web/data/cubicweb.bookmarks.js
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 03 Jun 2009 19:46:06 +0200
branch3.0
changeset 2029 9c316aedb90c
parent 0 b97547f5f1fa
child 1419 7ff24154351d
permissions -rw-r--r--
closing 3.0 branch merged into trunk.

CubicWeb.require('ajax.js');

function removeBookmark(beid) {
    d = async_remote_exec('delete_bookmark', beid);
    d.addCallback(function(boxcontent) {
	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
  	document.location.hash = '#header';
 	updateMessage(_("bookmark has been removed"));
    });
}