web/data/cubicweb.bookmarks.js
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Thu, 04 Mar 2010 16:58:40 +0100
branchstable
changeset 4798 d5bd706e9005
parent 1419 7ff24154351d
permissions -rw-r--r--
[cwctl] list will warn about a badly formatted version constraint instead of crashing

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