X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fprefs.js;h=83f3d31afe9a8d310c3d17aacd539ac1faf4e9a2;hb=ddcd0fa5b77835ba0fed3ffed6b55ff5559151f9;hp=93aec394c2c1b594409d32029d8c82ee6fc01bda;hpb=2b3754d1aff00324c59d8ca5a102e9cb289f19e8;p=brisk.git diff --git a/web/prefs.js b/web/prefs.js index 93aec39..83f3d31 100644 --- a/web/prefs.js +++ b/web/prefs.js @@ -1,6 +1,6 @@ var l_list_all = 0x00; -var l_list_isol = 0x02; -var l_prefs_list_idx = new Array( 0x00, 0x02 ); +var l_list_isol = 0x01; +var l_prefs_list_idx = new Array( 0x00, 0x01 ); var l_prefs_list_id = new Array( "all", "isol" ); var l_comps_name = new Array('s_fg_r', 's_fg_g', 's_fg_b', 's_bg_r', 's_bg_g', 's_bg_b'); @@ -64,13 +64,9 @@ function prefs_apply(prefs_new, is_update, is_volat) } if (relo || !is_update) { - 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' : ''); - } + $('tr.noauth').style.display = (prefs_new.listen == l_list_isol ? 'none' : ''); + $('td.noauth').style.display = (prefs_new.listen == l_list_isol ? 'none' : ''); - $('td_noauth'+i).style.display = (prefs_new.listen == l_list_isol ? 'none' : ''); - } if (prefs_new.listen == l_list_isol) { tra.hide_noauth(); } @@ -205,14 +201,9 @@ function list_set(what, is_update, info) if (relo || !is_update) { - for (i = g_tables_appr_n ; i < g_tables_n ; i++) { - - if (i % 4 == 0) { - $('tr_noauth'+i).style.display = (what == 'isolation' ? 'none' : ''); - } - - $('td_noauth'+i).style.display = (what == 'isolation' ? 'none' : ''); - } + $('tr.noauth').style.display = (what == 'isolation' ? 'none' : ''); + $('td.noauth').style.display = (what == 'isolation' ? 'none' : ''); + if (what == 'isolation') { tra.hide_noauth(); }