X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fprefs.js;h=d926105de9b56550ab3edb8bc98261916bf5d09e;hb=1772d953a09873d0deefe599985927ebbe801a65;hp=e880506848f9f4f5b75b34ad74f7e59a7c959403;hpb=1fc2a56fc5b81d917ce929be0e2f0d53672a26fa;p=brisk.git diff --git a/web/prefs.js b/web/prefs.js index e880506..d926105 100644 --- a/web/prefs.js +++ b/web/prefs.js @@ -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').css("display", (prefs_new.listen == l_list_isol ? 'none' : '')); + $$('td.noauth').css("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').css("display", (what == 'isolation' ? 'none' : '')); + $$('td.noauth').css("display", (what == 'isolation' ? 'none' : '')); + if (what == 'isolation') { tra.hide_noauth(); }