X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Froom.js;h=38a3d2a410cc8b769f89f4f1e0a757f14d7db6fe;hb=bbd72460bcf4269ffd21cfb97e0ab616ac7276e7;hp=4222b1edfb0219158d67f262eb9f068026bf91c9;hpb=2558f367009cc3eb1b0e2b4d50295f180615f36f;p=brisk.git diff --git a/web/room.js b/web/room.js index 4222b1e..38a3d2a 100644 --- a/web/room.js +++ b/web/room.js @@ -426,7 +426,7 @@ function j_stand_cont(ddata) var usr = $("standup").getElementsByClassName("id_usr"); for (i = 0 ; i < usr.length ; i++) { - addEvent(usr[i], "click", click_update_cb); + addEvent(usr[i], "click", info_show_cb); } } @@ -437,12 +437,6 @@ function esco_cb() { act_logout(0); }; -function click_update_cb(e) -{ - console.log("qui"); - console.log(e.target.innerHTML); -} - function j_tab_cont(table_idx, data) { var i; @@ -456,7 +450,7 @@ function j_tab_cont(table_idx, data) $("table"+table_idx).innerHTML = content; var usr = $("table"+table_idx).getElementsByClassName("id_usr"); for (i = 0 ; i < usr.length ; i++) { - addEvent(usr[i], "click", click_update_cb); + addEvent(usr[i], "click", info_show_cb); } } @@ -466,6 +460,10 @@ function j_tab_act_cont(idx, act) // MLANG 1 $("table_act"+idx).innerHTML = ''; } + else if (act == 'sitappr') { + // MLANG 1 + $("table_act"+idx).innerHTML = ''; + } else if (act == 'sitreser') { // MLANG 1 $("table_act"+idx).innerHTML = ''; @@ -506,13 +504,13 @@ function j_check_login(login, ret) (login[i] >= 'A' && login[i] <= 'Z')) { if (old_c != login[i]) { old_c = login[i]; - old_ct = 0; + old_ct = 1; } else { - if (old_ct > 3) { + if (old_ct > 2) { // FIXME LANG - ret.ret = (g_lang == 'en' ? "More than three contiguous '" + old_c + "' not allowed." : - "Il nickname contiene più di tre caratteri '" + old_c + "' consecutivi."); + ret.ret = (g_lang == 'en' ? "More than two contiguous '" + old_c + "' not allowed." : + "Il nickname contiene più di 2 caratteri '" + old_c + "' consecutivi."); return (false); } }