web/data/cubicweb.bookmarks.js
branchtls-sprint
changeset 1419 7ff24154351d
parent 0 b97547f5f1fa
equal deleted inserted replaced
1417:06af20e663f2 1419:7ff24154351d
     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     });