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:
parent
94870c557e
commit
987482c590
@ -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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user