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 @@
- - Log
+
diff --git a/sai/modules/saimod_sys_todo/js/saimod_sys_todo.js b/sai/modules/saimod_sys_todo/js/saimod_sys_todo.js
index bc23549..cc0d1ba 100644
--- a/sai/modules/saimod_sys_todo/js/saimod_sys_todo.js
+++ b/sai/modules/saimod_sys_todo/js/saimod_sys_todo.js
@@ -4,16 +4,6 @@ function init_saimod_sys_todo() {
$(this).removeClass('active');});
$(this).parent().addClass('active');
});
- if(system.cur_state() === 'todo(stats)'){
- $('#tabs_todo li').each(function(){
- $(this).removeClass('active');});
- $('#menu_stats').parent().addClass('active');
- }
- if(system.cur_state() === 'todo(doto)'){
- $('#tabs_todo li').each(function(){
- $(this).removeClass('active');});
- $('#menu_doto').parent().addClass('active');
- }
$('#btn_close_all').click(function(){
if (confirm('Are you sure you want to delete all open entries in the todolist?')) {
@@ -30,6 +20,24 @@ function init_saimod_sys_todo() {
})
};
+function init_saimod_sys_todo_todo() {
+ $('#tabs_todo li').each(function(){
+ $(this).removeClass('active');});
+ $('#menu_todolist').parent().addClass('active');
+}
+
+function init_saimod_sys_todo_doto() {
+ $('#tabs_todo li').each(function(){
+ $(this).removeClass('active');});
+ $('#menu_doto').parent().addClass('active');
+}
+
+function init_saimod_sys_todo_stats() {
+ $('#tabs_todo li').each(function(){
+ $(this).removeClass('active');});
+ $('#menu_stats').parent().addClass('active');
+}
+
function init_saimod_sys_todo_todoopen(){
$('#btn_edit').click(function(){
$.ajax({ type : 'GET',
diff --git a/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl b/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl
index 640c1d4..0266dfa 100644
--- a/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl
+++ b/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl
@@ -2,7 +2,7 @@
- - ToDo
+
diff --git a/sai/modules/saistart_sys_sai/tpl/content_loggedin.tpl b/sai/modules/saistart_sys_sai/tpl/content_loggedin.tpl
index c8f45ff..8d0221e 100644
--- a/sai/modules/saistart_sys_sai/tpl/content_loggedin.tpl
+++ b/sai/modules/saistart_sys_sai/tpl/content_loggedin.tpl
@@ -10,7 +10,7 @@
Progress: ${project}%