web/data/cubicweb.bookmarks.js
author sylvain.thenault@logilab.fr
Tue, 12 May 2009 20:53:45 +0200
branchtls-sprint
changeset 1767 f0ba5a07e271
parent 1419 7ff24154351d
permissions -rw-r--r--
should specify role

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