doc/book/devweb/js.rst
changeset 12879 7347715bf0ee
parent 10495 5bd914ebf3ae
equal deleted inserted replaced
12878:ec05a333f02c 12879:7347715bf0ee
   140 .. sourcecode:: javascript
   140 .. sourcecode:: javascript
   141 
   141 
   142     function removeBookmark(beid) {
   142     function removeBookmark(beid) {
   143         d = asyncRemoteExec('delete_bookmark', beid);
   143         d = asyncRemoteExec('delete_bookmark', beid);
   144         d.addCallback(function(boxcontent) {
   144         d.addCallback(function(boxcontent) {
   145 	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
   145             reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
   146             document.location.hash = '#header';
   146             document.location.hash = '#header';
   147             updateMessage(_("bookmark has been removed"));
   147             updateMessage(_("bookmark has been removed"));
   148          });
   148          });
   149     }
   149     }
   150 
   150