Better message on error

Changed message from "conecting" to "error" as in this case
communication was over and was an error.
This commit is contained in:
Alexandru Ghica 2013-02-22 15:51:50 +02:00
parent b6af624b14
commit 8c45f23255

View File

@ -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));