web/data/cubicweb.bookmarks.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 05 Jan 2010 17:04:29 +0100
branchstable
changeset 4208 b2826afdaf8c
parent 1419 7ff24154351d
permissions -rw-r--r--
fix stripEmptyTextNodes for IE (part of #615337) this does not seem to make the function really work but it does not fail any more

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