client/app/app.js
changeset 7 813fec862542
parent 6 c53e9b24f93f
child 9 ae8a74bd6add
equal deleted inserted replaced
6:c53e9b24f93f 7:813fec862542
   121                     sock.send(JSON.stringify(new_annot));
   121                     sock.send(JSON.stringify(new_annot));
   122                     if(context.logging===true){
   122                     if(context.logging===true){
   123                         log('Sent: ' + JSON.stringify(new_annot));
   123                         log('Sent: ' + JSON.stringify(new_annot));
   124                     }
   124                     }
   125                 } else {
   125                 } else {
       
   126                     alert('La socket ne fonctionne pas.');
   126                     if(context.logging===true){
   127                     if(context.logging===true){
   127                         alert('La socket ne fonctionne pas.');
   128                         log('Not connected.');
   128                         if(context.logging===true){
       
   129                             log('Not connected.');
       
   130                         }
       
   131                     }
   129                     }
   132                 }
   130                 }
   133             };
   131             };
   134             
   132             
   135             // Interface management
   133             // Interface management