web/data/cubicweb.bookmarks.js
author Laure Bourgois <Laure.Bourgois@logilab.fr>
Thu, 02 Apr 2009 15:19:43 +0200
branch894685124c68
changeset 1213 06789a89f91f
parent 0 b97547f5f1fa
child 1419 7ff24154351d
permissions -rw-r--r--
adding action to startup schema view. this action enables to download owl view

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