web/data/cubicweb.ajax.js
changeset 10301 729f36a1bcfa
parent 10215 96085e379066
parent 10279 d7479a5ac553
child 10411 4ee15441f2eb
equal deleted inserted replaced
10276:ffb269e60348 10301:729f36a1bcfa
   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