client/app/app.js
changeset 7 813fec862542
parent 6 c53e9b24f93f
child 9 ae8a74bd6add
--- a/client/app/app.js	Thu Oct 09 15:22:50 2014 +0200
+++ b/client/app/app.js	Thu Oct 09 15:25:56 2014 +0200
@@ -123,11 +123,9 @@
                         log('Sent: ' + JSON.stringify(new_annot));
                     }
                 } else {
+                    alert('La socket ne fonctionne pas.');
                     if(context.logging===true){
-                        alert('La socket ne fonctionne pas.');
-                        if(context.logging===true){
-                            log('Not connected.');
-                        }
+                        log('Not connected.');
                     }
                 }
             };