Merge pull request #34 from kasimi/fix-jquery-selector

Fix jquery selector
This commit is contained in:
dmzx
2015-12-15 23:03:14 +01:00
2 changed files with 5 additions and 5 deletions

View File

@@ -145,7 +145,7 @@ jQuery(function($) {
mChat.interval = setInterval(mChat.refresh, mChat.refreshTime); mChat.interval = setInterval(mChat.refresh, mChat.refreshTime);
} }
$("#mChatOkIMG").show(); $("#mChatOkIMG").show();
$("#mChatLoadIMG, #mChatErrorIMG, #mChatPauseIMG").hide(); $("#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG").hide();
$("#mChatRefreshText").html(mChat.refreshYes); $("#mChatRefreshText").html(mChat.refreshYes);
$("#mChatMessage").val("").focus(); $("#mChatMessage").val("").focus();
} else { } else {
@@ -350,7 +350,7 @@ jQuery(function($) {
}, },
dataType: "html", dataType: "html",
beforeSend: function() { beforeSend: function() {
$("#mChatOkIMG, #mChatErrorIMG, #mChatPauseIMG").hide(); $("#mChatOkIMG,#mChatErrorIMG,#mChatPauseIMG").hide();
$("#mChatLoadIMG").show(); $("#mChatLoadIMG").show();
}, },
success: function(html) { success: function(html) {
@@ -369,13 +369,13 @@ jQuery(function($) {
mChat.notice(); mChat.notice();
} }
setTimeout(function() { setTimeout(function() {
$("#mChatLoadIMG, #mChatErrorIMG, #mChatPauseIMG").hide(); $("#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG").hide();
$("#mChatOkIMG").show(); $("#mChatOkIMG").show();
$("#mChatRefreshText").html(mChat.refreshYes); $("#mChatRefreshText").html(mChat.refreshYes);
}, 500); }, 500);
}, },
error: function() { error: function() {
$("#mChatLoadIMG, #mChatOkIMG, #mChatPauseIMG, #mChatRefreshTextNo, #mChatPauseIMG,").hide(); $("#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo").hide();
$("#mChatErrorIMG").show(); $("#mChatErrorIMG").show();
mChat.sound(mChat.forumRoot + "ext/dmzx/mchat/sounds/error.swf"); mChat.sound(mChat.forumRoot + "ext/dmzx/mchat/sounds/error.swf");
}, },

File diff suppressed because one or more lines are too long