From f437e1cf2fca65f0642ea82a29cc96de0d57c06d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 10 Mar 2011 00:29:26 +0100 Subject: Manage multiple windows --- static/js/ishtar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'static/js') 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){ } -- cgit v1.2.3