web/data/cubicweb.bookmarks.js
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 21 Jan 2010 11:13:39 +0100
branchstable
changeset 4315 2f957ad8e082
parent 1419 7ff24154351d
permissions -rw-r--r--
[views] FinalView should display an empty string if value is None

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