diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-04-12 19:19:54 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-04-12 19:19:54 +0200 |
commit | 8249510dcab33b7ef95d75bf4be4e0af5b3f5f48 (patch) | |
tree | c1fba513ad10b3758a49cdbfd2989fb44012f031 /static | |
parent | d0e31acb2cfb5c7300d3f8b833219b756577d73b (diff) | |
download | Ishtar-8249510dcab33b7ef95d75bf4be4e0af5b3f5f48.tar.bz2 Ishtar-8249510dcab33b7ef95d75bf4be4e0af5b3f5f48.zip |
Add a rollback button (closes #349)
Diffstat (limited to 'static')
-rw-r--r-- | static/js/ishtar.js | 15 |
1 files changed, 15 insertions, 0 deletions
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(""); +} |