X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fprefs.js;h=c131cab5657f61e3fd6f185730123ef3f5601afd;hb=a3bffc7253fc03075cfaa090aad3cd7f21844987;hp=51b7eba6244543bb66aa8e2998b64c0c22d56a64;hpb=628c0ad0666348d62d0e46fcace789c38edb5350;p=brisk.git diff --git a/web/prefs.js b/web/prefs.js index 51b7eba..c131cab 100644 --- a/web/prefs.js +++ b/web/prefs.js @@ -65,7 +65,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,8 +79,9 @@ 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; if (standup_data_old != null) { standup_data = standup_data_old; standup_data_old = null; @@ -114,8 +115,12 @@ function prefs_save() ret = server_request('mesg', 'prefs|save','__POST__', 'prefs', JSON.stringify(g_prefs)); - if (ret == 1) + if (ret == 1) { $('preferences').style.visibility = 'hidden'; + } + else { + alert(ret); + } } function prefs_reset() @@ -213,7 +218,7 @@ function list_set(what, is_update, info) 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 = (what == 'isolation' ? 'none' : '');