From 987482c590dc8533be10cd435463fe541be05799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 16 Dec 2011 18:23:58 +0100 Subject: [PATCH] Use .ajaxLoad for spinner in input --- file/js/TimWolla.WCF.Chat.js | 4 ++-- template/chat.tpl | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/file/js/TimWolla.WCF.Chat.js b/file/js/TimWolla.WCF.Chat.js index b6d01aa..f69d5a5 100644 --- a/file/js/TimWolla.WCF.Chat.js +++ b/file/js/TimWolla.WCF.Chat.js @@ -188,14 +188,14 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {}; }, type: 'POST', beforeSend: $.proxy(function (jqXHR) { - submitButton.attr('src', WCF.Icon.get('wcf.icon.loading')); + submitButton.addClass('ajaxLoad'); }), success: $.proxy(function (data, textStatus, jqXHR) { this.getMessages(); $('#chatInput').val('').focus(); }, this), complete: function() { - submitButton.attr('src', WCF.Icon.get('wcf.icon.toRight1')); + submitButton.removeClass('ajaxLoad'); } }); }, diff --git a/template/chat.tpl b/template/chat.tpl index 01cba8d..bc4b609 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -64,11 +64,6 @@ text-align: center; } - #chatInput { - background-position: right center; - background-repeat: no-repeat; - } - #chatOptions { display: inline-block; }