web/data/cubicweb.bookmarks.js
author Katia Saurfelt <katia.saurfelt@logilab.fr>
Thu, 17 Jun 2010 15:08:25 +0200
branchstable
changeset 5772 4283ee58acaf
parent 1419 7ff24154351d
permissions -rw-r--r--
[text search] fix fulltext_container indexation

CubicWeb.require('ajax.js');

function removeBookmark(beid) {
    d = asyncRemoteExec('delete_bookmark', beid);
    d.addCallback(function(boxcontent) {
	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
  	document.location.hash = '#header';
 	updateMessage(_("bookmark has been removed"));
    });
}