web/data/cubicweb.bookmarks.js
author Florent <florent@secondweb.fr>
Wed, 13 May 2009 08:58:32 +0200
branchtls-sprint
changeset 1771 bb9538d91465
parent 1419 7ff24154351d
permissions -rw-r--r--
fix <optgroup> tag cannot be empty according to DTD

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