diff --git a/files/sys/system.js b/files/sys/system.js index 6ef9125..20c3803 100644 --- a/files/sys/system.js +++ b/files/sys/system.js @@ -91,7 +91,7 @@ SYSTEM.prototype.handle_call_pages_page = function (html,entry,id,forced,cached) SYSTEM.prototype.handle_call_pages_entry = function (entry,id,forced,cached) { var url = entry['url']+(window.location.search.substr(1) ? '&'+window.location.search.substr(1) : '' ); //check loaded state of div - reload only if required - if(forced || this.state[entry['div']] !== url){ + if(forced || this.state[entry['div']] !== url || !$(entry['div']).length){ //load page this.call_url(url,function(data){system.handle_call_pages_page(data,entry,id,forced,cached);},{},'html',true); } else { diff --git a/sai/modules/saimod_sys_log/js/saimod_sys_log.js b/sai/modules/saimod_sys_log/js/saimod_sys_log.js index 4ed99c8..a8b1419 100644 --- a/sai/modules/saimod_sys_log/js/saimod_sys_log.js +++ b/sai/modules/saimod_sys_log/js/saimod_sys_log.js @@ -5,13 +5,14 @@ function init_saimod_sys_log() { $(this).removeClass('active');}); $(this).parent().addClass('active'); }); - if(system.cur_state() === 'log(stats)'){ - $('#tabs_log li').each(function(){ - $(this).removeClass('active');}); - $('#menu_stats').parent().addClass('active'); - } }; +function init_saimod_sys_log_log() { + $('#tabs_log li').each(function(){ + $(this).removeClass('active');}); + $('#menu_loglist').parent().addClass('active'); +} + function init_saimod_sys_log_stats() { load_visualisation(); $('#vis_filter_time').change(function(){ @@ -23,6 +24,9 @@ function init_saimod_sys_log_stats() { $(this).tab('show'); load_visualisation(); }); + $('#tabs_log li').each(function(){ + $(this).removeClass('active');}); + $('#menu_stats').parent().addClass('active'); } function load_visualisation(){ $('img#loader').show(); diff --git a/sai/modules/saimod_sys_log/tpl/saimod_sys_log.tpl b/sai/modules/saimod_sys_log/tpl/saimod_sys_log.tpl index d30a8e6..5b1d122 100644 --- a/sai/modules/saimod_sys_log/tpl/saimod_sys_log.tpl +++ b/sai/modules/saimod_sys_log/tpl/saimod_sys_log.tpl @@ -2,7 +2,7 @@