summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
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
commit1fe643357ffdfa927e4a0c048412d09ef478f8c0 (patch)
treed4004e06333fe7955272e9ef6ddafc9ae4aca558 /static
parentc66f45d648982d0aa7f62104d8009cfae7c7ccf7 (diff)
downloadIshtar-1fe643357ffdfa927e4a0c048412d09ef478f8c0.tar.bz2
Ishtar-1fe643357ffdfa927e4a0c048412d09ef478f8c0.zip
Manage multiple windows
Diffstat (limited to 'static')
-rw-r--r--static/js/ishtar.js6
-rw-r--r--static/media/style.css6
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;