1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Use .ajaxLoad for spinner in input

This commit is contained in:
Tim Düsterhus 2011-12-16 18:23:58 +01:00
parent 94870c557e
commit 987482c590
2 changed files with 2 additions and 7 deletions

View File

@ -188,14 +188,14 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
}, },
type: 'POST', type: 'POST',
beforeSend: $.proxy(function (jqXHR) { beforeSend: $.proxy(function (jqXHR) {
submitButton.attr('src', WCF.Icon.get('wcf.icon.loading')); submitButton.addClass('ajaxLoad');
}), }),
success: $.proxy(function (data, textStatus, jqXHR) { success: $.proxy(function (data, textStatus, jqXHR) {
this.getMessages(); this.getMessages();
$('#chatInput').val('').focus(); $('#chatInput').val('').focus();
}, this), }, this),
complete: function() { complete: function() {
submitButton.attr('src', WCF.Icon.get('wcf.icon.toRight1')); submitButton.removeClass('ajaxLoad');
} }
}); });
}, },

View File

@ -64,11 +64,6 @@
text-align: center; text-align: center;
} }
#chatInput {
background-position: right center;
background-repeat: no-repeat;
}
#chatOptions { #chatOptions {
display: inline-block; display: inline-block;
} }