web/data/cubicweb.bookmarks.js
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 10 Mar 2010 12:37:34 +0100
branchstable
changeset 4860 cedb6afdb7da
parent 1419 7ff24154351d
permissions -rw-r--r--
[web] fix #736332: iespec functionality for add_css Patch provided by vgodard.

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