diff --git a/file/js/TimWolla.WCF.Chat.js b/file/js/TimWolla.WCF.Chat.js
index 07b12f3..fc8a5b7 100644
--- a/file/js/TimWolla.WCF.Chat.js
+++ b/file/js/TimWolla.WCF.Chat.js
@@ -37,6 +37,10 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
event.preventDefault();
this.toggleUserMenu($(event.target));
}, this));
+ $('#chatForm').submit($.proxy(function (event) {
+ event.preventDefault();
+ $(event.target).find('input[type=image]').attr('src', WCF.Icon.get('wcf.icon.loading'));
+ }, this));
},
changeRoom: function (target) {
window.history.replaceState({}, '', target.attr('href'));
@@ -97,7 +101,7 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
'overflow': 'hidden'
})
.parent()
- .append('')
+ .append('')
.css({'marginTop' : function (index) {return (target.parent().height() / 2) - ($(this).height() / 2);}});
}, this)
});