From 9bf6fb03580a6a277502ca68738f84af7675445f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 12 Apr 2011 19:19:54 +0200 Subject: Add a rollback button (closes #349) --- static/js/ishtar.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'static') diff --git a/static/js/ishtar.js b/static/js/ishtar.js index f345cf030..534670cba 100644 --- a/static/js/ishtar.js +++ b/static/js/ishtar.js @@ -60,6 +60,16 @@ function load_window(url, speed){ }); } +function load_url(url){ + $.ajax({ + url: url, + cache: false, + success:function(html){}, + error:function(XMLHttpRequest, textStatus, errorThrows){ + } + }); +} + function open_window(url){ var newwindow = window.open(url, 'Ishtar', 'height=400,width=550,scrollbars=yes'); @@ -83,3 +93,8 @@ function multiRemoveItem(selItems, name, idx){ } jQuery("#selected_"+name+"_"+idx).remove(); } + +function closeAllWindows(){ + jQuery("#window > div").hide("slow"); + jQuery("#window").html(""); +} -- cgit v1.2.3