web/data/cubicweb.bookmarks.js
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Tue, 28 Jul 2009 21:11:10 +0200
branchstable
changeset 2537 73c83c14dd2c
parent 1419 7ff24154351d
permissions -rw-r--r--
[javascript] fix IFRAME implementation and make it work in IE 6/7 + FF3 with text/html served pages For more information : - http://groups.google.com/group/comp.lang.javascript/msg/510f639e1fdebcc8 - http://msdn.microsoft.com/en-us/library/ms536389%28VS.85%29.aspx

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