just all or authenticated users prefs options
[brisk.git] / web / commons.js
index 62d3330..8a5b0a6 100644 (file)
@@ -41,10 +41,8 @@ var mlang_commons = { 'imgload_a' : { 'it' : 'Immagini caricate ',
                                       'en' : 'Exit.' },
                       'tit_list'  : { '0'  : { 'it' : '',
                                                'en' : '' },
-                                      '1'  : { 'it' : '(solo aut.)',
-                                               'en' : '(only aut.)' },
-                                      '2'  : { 'it' : '(isolam.to)',
-                                               'en' : '(isolation)' } },
+                                      '1'  : { 'it' : '(autenticati)',
+                                               'en' : '(authenticated)' } },
                       'tos_refu'  : { 'it' : 'Rifiutando di sottoscrivere i nuovi termini del servizio non ti sarà più possibile accedere come utente registrato al sito, sei proprio sicuro di voler rifiutare le nuove condizioni d\'uso ?',
                                       'en' : 'EN Rifiutando di sottoscrivere i nuovi termini del servizio non ti sarà più possibile accedere come utente registrato al sito, sei proprio sicuro di voler rifiutare le nuove condizioni d\'uso ?'
                                     }
@@ -284,7 +282,16 @@ function send_mesg(mesg, content)
             lang: readCookie("lang")
             });
         // console.log(ws_msg);
-        xstm.transp.ws.send(ws_msg);
+        xstm.send(ws_msg);
+        /*
+        if (xstm.transp.ws.readyState == 1) {
+            xstm.transp.ws.send(ws_msg);
+        }
+        else {
+            xstm.transp.out_queue.push(ws_msg);
+        }
+        */
+
     }
     else {
     var xhr_wr = createXMLHttpRequest();