web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 13 May 2009 19:51:30 +0200
branchtls-sprint
changeset 1798 cc86fe8efaaa
parent 1419 7ff24154351d
permissions -rw-r--r--
pass default values along the whole call chain, fix hidden field update bug

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