X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Froom.js;h=db26f8167a2fde603cb889d45e75b50f04f761f7;hb=efa2e8f28df92d3288f2c9edcd2ce5b38cd928dc;hp=2dd207c31724f4491460f3c8dd194a13b4d33438;hpb=5cf7309d9937fba5b9b97c3bf0d7c6ca2db1e4df;p=brisk.git
diff --git a/web/room.js b/web/room.js
index 2dd207c..db26f81 100644
--- a/web/room.js
+++ b/web/room.js
@@ -443,6 +443,9 @@ function j_tab_cont(table_idx, data)
var content = '';
for (i = 0 ; i < data.length ; i++) {
+ if (data[i][1] == window.myname) {
+ data[i][0] |= 1;
+ }
content += j_stand_tdcont(data[i]);
content += '
';
@@ -460,6 +463,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 = '';
@@ -500,13 +507,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);
}
}
@@ -635,7 +642,7 @@ function mesgtoadm_formtext_hilite(form)
function j_check_email(email, ret)
{
- if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,10})+$/.test(email))
+ if (/^\w+([\.-]*\w+)*@\w+([\.-]*\w+)*(\.\w{2,10})+$/.test(email))
return (true);
ret.ret += (g_lang == 'en' ? "Invalid email address. " :
"Indirizzo e-mail non valido.");