web/data/cubicweb.bookmarks.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 05 Aug 2009 17:24:52 +0200
changeset 2697 a0c4bc933a1b
parent 1419 7ff24154351d
permissions -rw-r--r--
[schema hooks] rename variable, check unique constraint actually changed before creating the index

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