web/data/cubicweb.bookmarks.js
author Sylvain <syt@logilab.fr>
Wed, 14 Jan 2009 17:16:15 +0100
changeset 411 c3d08d95693b
parent 0 b97547f5f1fa
child 1419 7ff24154351d
permissions -rw-r--r--
Added tag cubicweb-debian-version-3_0_2-1 for changeset 18d3e56c1de4

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