web/data/cubicweb.ajax.js
changeset 10279 d7479a5ac553
parent 10165 7f1f7f710b16
child 10301 729f36a1bcfa
child 10380 bfd93cbd34a4
equal deleted inserted replaced
10278:90aab6ddf6d8 10279:d7479a5ac553
   509 function removeBookmark(beid) {
   509 function removeBookmark(beid) {
   510     var d = loadRemote(AJAX_BASE_URL, ajaxFuncArgs('delete_bookmark', null, beid));
   510     var d = loadRemote(AJAX_BASE_URL, ajaxFuncArgs('delete_bookmark', null, beid));
   511     d.addCallback(function(boxcontent) {
   511     d.addCallback(function(boxcontent) {
   512         $('#bookmarks_box').loadxhtml(AJAX_BASE_URL,
   512         $('#bookmarks_box').loadxhtml(AJAX_BASE_URL,
   513                                       ajaxFuncArgs('render', null, 'ctxcomponents',
   513                                       ajaxFuncArgs('render', null, 'ctxcomponents',
   514                                                    'bookmarks_box'));
   514                                                    'bookmarks_box'),
       
   515                                       null, 'swap');
   515         document.location.hash = '#header';
   516         document.location.hash = '#header';
   516         updateMessage(_("bookmark has been removed"));
   517         updateMessage(_("bookmark has been removed"));
   517     });
   518     });
   518 }
   519 }
   519 
   520