From 96f468b3ca189280b731f2d38a50671c692aa3ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 11 Dec 2011 13:27:39 +0100 Subject: [PATCH] Adding onSubmit-event-skeleton and correct icon-urls --- file/js/TimWolla.WCF.Chat.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) });