web/data/cubicweb.bookmarks.js
author sylvain.thenault@logilab.fr
Thu, 12 Mar 2009 20:44:58 +0100 (2009-03-12)
branchtls-sprint
changeset 1108 1e5ed5f57f2f
parent 0 b97547f5f1fa
child 1419 7ff24154351d
permissions -rw-r--r--
give field id in __repr__
CubicWeb.require('ajax.js');

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