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 | |
parent | c66f45d648982d0aa7f62104d8009cfae7c7ccf7 (diff) | |
download | Ishtar-1fe643357ffdfa927e4a0c048412d09ef478f8c0.tar.bz2 Ishtar-1fe643357ffdfa927e4a0c048412d09ef478f8c0.zip |
Manage multiple windows
Diffstat (limited to 'static')
-rw-r--r-- | static/js/ishtar.js | 6 | ||||
-rw-r--r-- | static/media/style.css | 6 |
2 files changed, 5 insertions, 7 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){ } diff --git a/static/media/style.css b/static/media/style.css index 8aa4ead48..7868a4671 100644 --- a/static/media/style.css +++ b/static/media/style.css @@ -249,7 +249,7 @@ table.confirm tr.spacer td:last-child{ color:#D14; } -#window{ +.sheet{ width:760px; position:fixed; height:90%; @@ -299,10 +299,6 @@ table.confirm tr.spacer td:last-child{ font-style:italic; } -#window .sheet{ -} - - #window .head{ text-align:center; background-color:#EEE; |