web/data/cubicweb.bookmarks.js
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 18 Nov 2009 12:32:57 +0100
branchstable
changeset 3873 4d95109582c7
parent 1419 7ff24154351d
permissions -rw-r--r--
[web] remove widget.render backward compatibility there are very few widgets outside CW that used old render API and they should have all been updated by now.

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