web/data/cubicweb.bookmarks.js
changeset 0 b97547f5f1fa
child 1419 7ff24154351d
equal deleted inserted replaced
-1:000000000000 0:b97547f5f1fa
       
     1 CubicWeb.require('ajax.js');
       
     2 
       
     3 function removeBookmark(beid) {
       
     4     d = async_remote_exec('delete_bookmark', beid);
       
     5     d.addCallback(function(boxcontent) {
       
     6 	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
       
     7   	document.location.hash = '#header';
       
     8  	updateMessage(_("bookmark has been removed"));
       
     9     });
       
    10 }