web/data/cubicweb.bookmarks.js
author Florent <florent@secondweb.fr>
Mon, 27 Apr 2009 19:20:00 +0200
branchtls-sprint
changeset 1489 08acef58ad08
parent 1419 7ff24154351d
permissions -rw-r--r--
add a test regarding login with a primary email

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