web/data/cubicweb.bookmarks.js
author Aurélien Campéas
Mon, 07 Sep 2009 12:23:42 +0200
branch3.5
changeset 3116 8bf500eb01d6
parent 1419 7ff24154351d
permissions -rw-r--r--
two convenience files * .hgignore with good default values * cubicweb-ctl.bat to launch things under win32

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