web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 16 Jul 2009 16:34:02 +0200
changeset 2385 8fa16dc4b8c8
parent 1419 7ff24154351d
permissions -rw-r--r--
[js] shrink htmlhelpers, extract massmailing functionality, jslint

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