dev commit
[brisk.git] / web / prefs.js
index 69eb9a8..cb5adf1 100644 (file)
@@ -35,6 +35,8 @@ function prefs_apply(prefs_new, is_update, is_volat)
     var i;
     var relo = false;
 
+    console.log('prefs_apply: begin');
+
     if (typeof(g_prefs) == 'undefined')
         return false;
     /* listen management */
@@ -65,7 +67,7 @@ function prefs_apply(prefs_new, is_update, is_volat)
     }
 
     if (relo || !is_update) {
-        for (i = g_tables_auth_n ; i < g_tables_n ; i++) {
+        for (i = g_tables_appr_n ; i < g_tables_n ; i++) {
             if (i % 4 == 0) {
                 $('tr_noauth'+i).style.display = (prefs_new.listen == l_list_isol ? 'none' : '');
             }
@@ -79,9 +81,13 @@ function prefs_apply(prefs_new, is_update, is_volat)
             tra.show_noauth();
         }
 
-        if (false) {
+        if (true) {
             // ricalculation of standup area
+            g_prefs.listen = prefs_new.listen;
+
+            console.log('here we are');
             if (standup_data_old != null) {
+                console.log('here we are2');
                 standup_data = standup_data_old;
                 standup_data_old = null;
                 j_stand_cont(standup_data);