web/data/cubicweb.bookmarks.js
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 22 May 2009 00:46:41 +0200
branchstable
changeset 1899 361774742f3e
parent 1419 7ff24154351d
permissions -rw-r--r--
[test] fix test after xhml_wrap changed signature

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