web/data/cubicweb.bookmarks.js
author Stephanie Marcu <stephanie.marcu@logilab.fr>
Fri, 13 Feb 2009 16:34:05 +0100
changeset 622 2d30c5e1a7d2
parent 0 b97547f5f1fa
child 1419 7ff24154351d
permissions -rw-r--r--
complete doc about rtags

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