2
0
Эх сурвалжийг харах

Better message on error

Changed message from "conecting" to "error" as in this case
communication was over and was an error.
Alexandru Ghica 12 жил өмнө
parent
commit
8c45f23255
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      converse.js

+ 3 - 1
converse.js

@@ -1815,8 +1815,10 @@
         }).render();
 
         $(document).bind('jarnxmpp.disconnected', $.proxy(function (ev, conn) {
-            $connecting.show();
             $toggle.hide();
+            $connecting.show();
+            $connecting.html('Unable to communicate with chat server');
+            $connecting.css('background-image', "url('/error_icon.png')");
             console.log("Connection Failed :(");
         }, this));