web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 09 Jul 2009 12:14:02 +0200
branchstable
changeset 2345 16e3d0e47ee6
parent 1419 7ff24154351d
permissions -rw-r--r--
[reledit] there is nothing to escape, also cleanup lzone for attributes

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