equal
deleted
inserted
replaced
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 }); |