web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 20 Oct 2009 12:45:44 +0200
branchstable
changeset 3744 767b5d0cd3cc
parent 1419 7ff24154351d
permissions -rw-r--r--
reledit: load actual edition form on demand #471799

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