web/data/cubicweb.bookmarks.js
author Julien Jehannet <julien.jehannet@logilab.fr>
Thu, 10 Sep 2009 14:16:10 +0200
branchstable
changeset 3168 1ecd1b6d6f1b
parent 1419 7ff24154351d
permissions -rw-r--r--
[tests] inheritance_precedence in url rewrite

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"));
    });
}