X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=192094d4e013f2d2b21f819881ec84ac216294f0;hb=76e60a0d70700e42468b35921854fecc929254c5;hp=59682601611ad9fc0312a0bef6b8bd0d1e8d277a;hpb=b65dddf6cb8fdc5a98719ed170ca38c2059b362c;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 5968260..192094d 100644 --- a/web/commons.js +++ b/web/commons.js @@ -25,7 +25,7 @@ var PLAYERS_N = 3; var EXIT_BAN_TIME = 3600; var cookiepath = "/brisk/"; -var mlang_commons = { 'imgload_a' : { 'it' : 'Immagine caricate ', +var mlang_commons = { 'imgload_a' : { 'it' : 'Immagini caricate ', 'en' : 'Loaded images ' }, 'imgload_b' : { 'it' : '%.', 'en' : '%.' }, @@ -847,7 +847,7 @@ function user_dec_and_state(el) var val_el; content = user_decorator(el); - content += state_add(el[0]); + content += state_add(el[0],(typeof(el[2]) != 'undefined' ? el[2] : null)); return (content); } @@ -1195,7 +1195,7 @@ function url_complete(parent, url) } // alert("host: ["+host+"] path: ["+path+"]"); - if (url.substring(0,6) == 'http:/' || url.substring(0,7) == 'https:/') { + if (url.substring(0,6) == 'http:/' || url.substring(0,7) == 'https:/' || url.substring(0,4) == 'ws:/') { return (url); } else if (url.substring(0,1) == '/') {