web/data/cubicweb.bookmarks.js
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 19 Feb 2009 21:31:18 +0100
branchtls-sprint
changeset 861 7985b5db2284
parent 0 b97547f5f1fa
child 1419 7ff24154351d
permissions -rw-r--r--
provide a mini HTML select tag constructor

CubicWeb.require('ajax.js');

function removeBookmark(beid) {
    d = async_remote_exec('delete_bookmark', beid);
    d.addCallback(function(boxcontent) {
	    reloadComponent('bookmarks_box', '', 'boxes', 'bookmarks_box');
  	document.location.hash = '#header';
 	updateMessage(_("bookmark has been removed"));
    });
}