X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=8f3253c142d2d82e33d65a2a88946fb4b718ba73;hb=fc19a0f063cf2e544a61a58b4ac31254f91d6ba5;hp=c317957ff5a229ed1ebf420a29c29116e0bd9242;hpb=29386faba01ac22d3d47e5f467412dc63b4e22cf;p=brisk.git diff --git a/web/commons.js b/web/commons.js index c317957..8f3253c 100644 --- a/web/commons.js +++ b/web/commons.js @@ -1043,12 +1043,14 @@ function user_decorator(user, is_real) } } - if (flags != 0) + if (flags != 0) { name = ""+user[1]+""; - else + (is_real && (flags & 0xfffffe && ((flags & 0x01) == 0)) ? "id_usr" : "") + + "'>" + user[1] + ""; + } + else { name = user[1]; + } return (name); } @@ -1391,7 +1393,8 @@ function url_complete(parent, url) } // alert("host: ["+host+"] path: ["+path+"]"); - if (url.substring(0,6) == 'http:/' || url.substring(0,7) == 'https:/' || url.substring(0,4) == 'ws:/') { + console.log('URL: ' + url); + if (url.substring(0,6) == 'http:/' || url.substring(0,7) == 'https:/' || url.substring(0,4) == 'ws:/' || url.substring(0,5) == 'wss:/') { return (url); } else if (url.substring(0,1) == '/') {