web/data/cubicweb.bookmarks.js
author Charles Hébert <charles.hebert@logilab.fr>
Tue, 23 Feb 2010 12:43:16 +0100
branchstable
changeset 4657 79005a48b221
parent 1419 7ff24154351d
permissions -rw-r--r--
[css] fix disappearing image in menu when a:hover

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