web/data/cubicweb.bookmarks.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 03 May 2010 14:10:23 +0200
changeset 5453 d0c8076e298b
parent 1419 7ff24154351d
permissions -rw-r--r--
[widget] kill buggy / unused (only in cmhn) AddComboBox widget

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