diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-03-10 00:29:26 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-03-10 00:29:26 +0100 |
commit | 1fe643357ffdfa927e4a0c048412d09ef478f8c0 (patch) | |
tree | d4004e06333fe7955272e9ef6ddafc9ae4aca558 /static/js | |
parent | c66f45d648982d0aa7f62104d8009cfae7c7ccf7 (diff) | |
download | Ishtar-1fe643357ffdfa927e4a0c048412d09ef478f8c0.tar.bz2 Ishtar-1fe643357ffdfa927e4a0c048412d09ef478f8c0.zip |
Manage multiple windows
Diffstat (limited to 'static/js')
-rw-r--r-- | static/js/ishtar.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/static/js/ishtar.js b/static/js/ishtar.js index 7dc1be345..784480f81 100644 --- a/static/js/ishtar.js +++ b/static/js/ishtar.js @@ -45,13 +45,15 @@ $("#main_menu ul li").live('click', function(){ $(this).find('ul').show('slow'); }); +var last_window; + function load_window(url){ $.ajax({ url: url, cache: false, success:function(html){ - $("#window").html(html); - $("#window").show('slow'); + $("#window").append(html); + $("#"+last_window).show('slow'); }, error:function(XMLHttpRequest, textStatus, errorThrows){ } |