web/data/cubicweb.bookmarks.js
changeset 1808 aa09e20dd8c0
parent 1419 7ff24154351d
equal deleted inserted replaced
1693:49075f57cf2c 1808:aa09e20dd8c0
     1 CubicWeb.require('ajax.js');
     1 CubicWeb.require('ajax.js');
     2 
     2 
     3 function removeBookmark(beid) {
     3 function removeBookmark(beid) {
     4     d = async_remote_exec('delete_bookmark', beid);
     4     d = asyncRemoteExec('delete_bookmark', beid);
     5     d.addCallback(function(boxcontent) {
     5     d.addCallback(function(boxcontent) {
     6 	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
     6 	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
     7   	document.location.hash = '#header';
     7   	document.location.hash = '#header';
     8  	updateMessage(_("bookmark has been removed"));
     8  	updateMessage(_("bookmark has been removed"));
     9     });
     9     });