diff --git a/core/render_helper.php b/core/render_helper.php
index edd0091..7abf84e 100644
--- a/core/render_helper.php
+++ b/core/render_helper.php
@@ -1129,7 +1129,7 @@ class render_helper
'MCHAT_MESSAGE_LNGTH' => $this->config_mchat['max_message_lngth'],
'L_MCHAT_MESSAGE_LNGTH_EXPLAIN' => (intval($this->config_mchat['max_message_lngth'])) ? sprintf($this->user->lang['MCHAT_MESSAGE_LNGTH_EXPLAIN'], intval($this->config_mchat['max_message_lngth'])) : '',
'MCHAT_MESS_LONG' => sprintf($this->user->lang['MCHAT_MESS_LONG'], $this->config_mchat['max_message_lngth']),
- 'MCHAT_USER_TIMEOUT' => $this->config_mchat['timeout'] ? 1000 * $this->config_mchat['timeout'] : false,
+ 'MCHAT_USER_TIMEOUT' => 1000 * $this->config_mchat['timeout'],
'MCHAT_WHOIS_REFRESH' => 1000 * $this->config_mchat['whois_refresh'],
'MCHAT_PAUSE_ON_INPUT' => $this->config_mchat['pause_on_input'] ? true : false,
'L_MCHAT_ONLINE_EXPLAIN' => $this->functions_mchat->mchat_session_time($mchat_session_time),
diff --git a/styles/prosilver/template/mchat.js b/styles/prosilver/template/mchat.js
index 3317b74..7d609ee 100644
--- a/styles/prosilver/template/mchat.js
+++ b/styles/prosilver/template/mchat.js
@@ -30,7 +30,7 @@ jQuery(function($) {
scrollTop: $("#mChatmain")[0].scrollHeight
}, 1000, "swing");
}
- if (mChat.pause) {
+ if (!mChat.archiveMode && mChat.pause) {
$("#mChatMessage").on("keypress", function() {
clearInterval(mChat.interval);
$("#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG").hide();
@@ -141,7 +141,7 @@ jQuery(function($) {
var answer = confirm(mChat.reset);
if (answer) {
$("#mChatRefreshText").removeClass("mchat-alert");
- if (mChat.pause) {
+ if (!mChat.archiveMode && mChat.pause) {
mChat.interval = setInterval(mChat.refresh, mChat.refreshTime);
}
$("#mChatOkIMG").show();
@@ -156,6 +156,7 @@ jQuery(function($) {
if ($.cookie("mChatNoSound") == "yes") {
return;
}
+ file = mChat.extUrl + "sounds/" + file + ".swf";
if (navigator.userAgent.match(/MSIE ([0-9]+)\./) || navigator.userAgent.match(/Trident\/7.0; rv 11.0/)) {
$("#mChatSound").html('');
} else {
@@ -216,7 +217,7 @@ jQuery(function($) {
$("#submit_button").removeAttr("disabled");
mChat.interval = setInterval(mChat.refresh, mChat.refreshTime);
if (mChat.userTimeout) {
- mChat.sessionTime = mChat.userTimeout ? mChat.userTimeout / 1000 : false;
+ mChat.sessionTime = mChat.userTimeout / 1000;
mChat.counter = setInterval(mChat.countDown, 1000);
mChat.activeInterval = setInterval(mChat.active, mChat.userTimeout);
}
@@ -225,108 +226,96 @@ jQuery(function($) {
});
},
edit: function() {
- var id = $(this).closest('.mChatHover').data("id");
- var message = $("#mess" + id).data("edit");
- apprise(mChat.editInfo, {
- "textarea": message,
- "animate": true,
- "position": 200,
- "confirm": true
- }, function(r) {
- if (r) {
- $.ajax({
- url: mChat.file,
- timeout: 10000,
- type: "POST",
- data: {
- mode: "edit",
- message_id: id,
- message: r
- },
- dataType: "text",
- beforeSend: function() {
- clearInterval(mChat.interval);
- if (mChat.userTimeout) {
- clearInterval(mChat.activeInterval);
- clearInterval(mChat.counter);
- $("#mChatSessTimer").html(mChat.refreshing);
- }
- },
- success: function(html) {
- $("#mess" + id).fadeOut("slow", function() {
- $(this).replaceWith(html);
- $("#mess" + id).css("display", "none").fadeIn("slow");
- });
- },
- error: function(resp) {
- if (resp.status == 403) {
- alert(mChat.noAccess);
- } else if (resp.status == 501) {
- alert(mChat.noMessageInput);
- }
- },
- complete: function() {
- mChat.interval = setInterval(mChat.refresh, mChat.refreshTime);
- if (mChat.userTimeout) {
- mChat.sessionTime = mChat.userTimeout ? mChat.userTimeout / 1000 : false;
- mChat.counter = setInterval(mChat.countDown, 1000);
- mChat.activeInterval = setInterval(mChat.active, mChat.userTimeout);
- }
- if (!mChat.archiveMode && !mChat.messageTop) {
- setTimeout(function() {
- $("#mChatmain").animate({scrollTop: $("#mChatmain")[0].scrollHeight}, 1000, "swing");
- }, 1500);
- }
+ var id = $(this).closest(".mChatHover").data("id");
+ var $message = mChat.confirmContainer.find("textarea").show().val($("#mess" + id).data("edit"));
+ mChat.confirmContainer.find("p").text(mChat.editInfo);
+ phpbb.confirm(mChat.confirmContainer, function() {
+ $.ajax({
+ url: mChat.file,
+ timeout: 10000,
+ type: "POST",
+ data: {
+ mode: "edit",
+ message_id: id,
+ message: $message.val()
+ },
+ dataType: "text",
+ beforeSend: function() {
+ clearInterval(mChat.interval);
+ if (mChat.userTimeout) {
+ clearInterval(mChat.activeInterval);
+ clearInterval(mChat.counter);
+ $("#mChatSessTimer").html(mChat.refreshing);
}
- });
- }
+ },
+ success: function(html) {
+ $("#mess" + id).fadeOut("slow", function() {
+ $(this).replaceWith(html);
+ $("#mess" + id).css("display", "none").fadeIn("slow");
+ });
+ },
+ error: function(resp) {
+ if (resp.status == 403) {
+ alert(mChat.noAccess);
+ } else if (resp.status == 501) {
+ alert(mChat.noMessageInput);
+ }
+ },
+ complete: function() {
+ mChat.interval = setInterval(mChat.refresh, mChat.refreshTime);
+ if (mChat.userTimeout) {
+ mChat.sessionTime = mChat.userTimeout ? mChat.userTimeout / 1000 : false;
+ mChat.counter = setInterval(mChat.countDown, 1000);
+ mChat.activeInterval = setInterval(mChat.active, mChat.userTimeout);
+ }
+ if (!mChat.archiveMode && !mChat.messageTop) {
+ setTimeout(function() {
+ $("#mChatmain").animate({scrollTop: $("#mChatmain")[0].scrollHeight}, 1000, "swing");
+ }, 1500);
+ }
+ }
+ });
});
},
del: function() {
- var id = $(this).closest('.mChatHover').data("id");
- apprise(mChat.delConfirm, {
- "position": 200,
- "animate": true,
- "confirm": true
- }, function(del) {
- if (del) {
- $.ajax({
- url: mChat.file,
- timeout: 10000,
- type: "POST",
- data: {
- mode: "delete",
- message_id: id
- },
- beforeSend: function() {
- clearInterval(mChat.interval);
- if (mChat.userTimeout) {
- clearInterval(mChat.activeInterval);
- clearInterval(mChat.counter);
- $("#mChatSessTimer").html(mChat.refreshing);
- }
- },
- success: function() {
- $("#mess" + id).fadeOut("slow", function() {
- $(this).remove();
- });
- mChat.sound(mChat.forumRoot + "ext/dmzx/mchat/sounds/del.swf");
- },
- error: function() {
- alert(mChat.noAccess);
- },
- complete: function() {
- mChat.interval = setInterval(mChat.refresh, mChat.refreshTime);
- if (mChat.userTimeout) {
- mChat.sessionTime = mChat.userTimeout ? mChat.userTimeout / 1000 : false;
- mChat.counter = setInterval(mChat.countDown, 1000);
- mChat.activeInterval = setInterval(mChat.active, mChat.userTimeout);
- }
+ var id = $(this).closest(".mChatHover").data("id");
+ mChat.confirmContainer.find("textarea").hide();
+ mChat.confirmContainer.find("p").text(mChat.delConfirm);
+ phpbb.confirm(mChat.confirmContainer, function() {
+ $.ajax({
+ url: mChat.file,
+ timeout: 10000,
+ type: "POST",
+ data: {
+ mode: "delete",
+ message_id: id
+ },
+ beforeSend: function() {
+ clearInterval(mChat.interval);
+ if (mChat.userTimeout) {
+ clearInterval(mChat.activeInterval);
+ clearInterval(mChat.counter);
+ $("#mChatSessTimer").html(mChat.refreshing);
}
- });
- } else {
- return false;
- }
+ },
+ success: function() {
+ $("#mess" + id).fadeOut("slow", function() {
+ $(this).remove();
+ });
+ mChat.sound("del");
+ },
+ error: function() {
+ alert(mChat.noAccess);
+ },
+ complete: function() {
+ mChat.interval = setInterval(mChat.refresh, mChat.refreshTime);
+ if (mChat.userTimeout) {
+ mChat.sessionTime = mChat.userTimeout ? mChat.userTimeout / 1000 : false;
+ mChat.counter = setInterval(mChat.countDown, 1000);
+ mChat.activeInterval = setInterval(mChat.active, mChat.userTimeout);
+ }
+ }
+ });
});
},
refresh: function() {
@@ -367,7 +356,7 @@ jQuery(function($) {
}
$html.fadeIn("slow");
$("#mChatmain").stop().animate({scrollTop: mChat.messageTop ? 0 : $("#mChatmain")[0].scrollHeight}, 2000);
- mChat.sound(mChat.forumRoot + "ext/dmzx/mchat/sounds/add.swf");
+ mChat.sound("add");
mChat.notice();
}
setTimeout(function() {
@@ -379,7 +368,7 @@ jQuery(function($) {
error: function() {
$("#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo").hide();
$("#mChatErrorIMG").show();
- mChat.sound(mChat.forumRoot + "ext/dmzx/mchat/sounds/error.swf");
+ mChat.sound("error");
},
complete: function() {
if (!$("#mChatData").children(firstLastSelector).length) {
@@ -389,9 +378,6 @@ jQuery(function($) {
});
},
stats: function() {
- if (!mChat.whois) {
- return;
- }
$.ajax({
url: mChat.file,
timeout: 10000,
@@ -417,7 +403,7 @@ jQuery(function($) {
}
},
error: function() {
- mChat.sound(mChat.forumRoot + "ext/dmzx/mchat/sounds/error.swf");
+ mChat.sound("error");
},
complete: function() {
if ($("#mChatUserList").length && ($.cookie("mChatShowUserList") == "yes" || mChat.customPage)) {
@@ -437,7 +423,7 @@ jQuery(function($) {
$("#mChatSessMess").html(mChat.sessOut).addClass("mchat-alert");
},
insertMention: function() {
- var $msg = $(this).closest('.mChatHover');
+ var $msg = $(this).closest(".mChatHover");
var username = mChat.entityDecode($msg.data("username"));
var usercolor = $msg.data("usercolor");
if (usercolor) {
@@ -448,14 +434,14 @@ jQuery(function($) {
insert_text("@ " + username + ", ");
},
insertQuote: function() {
- var $msg = $(this).closest('.mChatHover');
+ var $msg = $(this).closest(".mChatHover");
var username = mChat.entityDecode($msg.data("username"));
var id = $msg.data("id");
var quote = mChat.entityDecode($("#mess" + id).data("edit"));
insert_text('[quote="' + username + '"]' + quote + '[/quote]');
},
insertLike: function() {
- var $msg = $(this).closest('.mChatHover');
+ var $msg = $(this).closest(".mChatHover");
var username = mChat.entityDecode($msg.data("username"));
var quote = mChat.entityDecode($msg.data("edit"));
insert_text(mChat.likes + '[quote="' + username + '"]' + quote + "[/quote]");
@@ -464,23 +450,27 @@ jQuery(function($) {
var s = decodeURIComponent(text.replace(/\+/g, " "));
s = s.replace(/</g, "<");
s = s.replace(/>/g, ">");
- s = s.replace(/:/g, ':');
- s = s.replace(/./g, '.');
- s = s.replace(/&/g, '&');
+ s = s.replace(/:/g, ":");
+ s = s.replace(/./g, ".");
+ s = s.replace(/&/g, "&");
s = s.replace(/"/g, '"');
return s;
}
});
mChat.interval = setInterval(mChat.refresh, mChat.refreshTime);
- mChat.statsInterval = setInterval(mChat.stats, mChat.whoisRefresh);
mChat.activeInterval = setInterval(mChat.active, mChat.userTimeout);
mChat.sessionTime = mChat.userTimeout ? mChat.userTimeout / 1000 : false;
+ mChat.confirmContainer = $("#mChatConfirm").detach().show();
if (mChat.userTimeout) {
mChat.counter = setInterval(mChat.countDown, 1000);
}
+ if (mChat.whois) {
+ mChat.statsInterval = setInterval(mChat.stats, mChat.whoisRefresh);
+ }
+
if ($.cookie("mChatShowSmiles") == "yes" && $("#mChatSmiles").css("display", "none")) {
$("#mChatSmiles").slideToggle("slow");
}
@@ -507,143 +497,4 @@ jQuery(function($) {
.on("click", "img.mChatInsertLike", mChat.insertLike)
.on("click", "img.mChatEdit", mChat.edit)
.on("click", "img.mChatDelete", mChat.del);
-
- // Apprise 1.5 by Daniel Raftery
- // http://thrivingkings.com/apprise
- //
- // Button text added by Adam Bezulski
- //
- // Cached jQuery variables, position center added by Josiah Ruddell
- function apprise(a, b, c) {
- a = '' + a + "";
- var d = {
- confirm: false,
- verify: false,
- input: false,
- textarea: false,
- animate: false,
- textOk: "Ok",
- textCancel: "Cancel",
- textYes: "Yes",
- textNo: "No",
- position: "center"
- };
- if (b) {
- for (var e in d) {
- if (typeof b[e] == "undefined") b[e] = d[e];
- }
- }
- var f = $(document).height(),
- g = $(document).width(),
- h = $('
'),
- i = $(''),
- j = $(''),
- k = $(''),
- l = 300;
- i.css({
- height: f,
- width: g
- }).appendTo("body").fadeIn(100, function() {
- $(this).css("filter", "alpha(opacity=70)");
- });
- h.prependTo("body");
- j.append(a).appendTo(h);
- if (b) {
- if (b.input) {
- if (typeof b.input == "string") {
- j.append('');
- } else {
- j.append('');
- }
- $(".aTextbox").focus();
- }
- if (typeof b.textarea == "string") {
- j.append('");
- $(".aEdit").focus();
- }
- }
- j.append(k);
- if (b) {
- if (b.confirm || b.input) {
- k.append('");
- k.append('");
- } else if (b.verify) {
- k.append('");
- k.append('");
- } else {
- k.append('");
- }
- } else {
- k.append('');
- }
- h.css("left", ($(window).width() - $(".appriseOuter").width()) / 2 + $(window).scrollLeft() + "px");
- if (b) {
- if (b.position && b.position === "center") {
- l = (f - h.height()) / 2;
- }
- if (b.animate) {
- var m = b.animate;
- if (isNaN(m)) {
- m = 400;
- }
- h.css("top", "-200px").show().animate({
- top: l
- }, m);
- } else {
- h.css("top", l).fadeIn(200);
- }
- } else {
- h.css("top", l).fadeIn(200);
- }
- $(document).keydown(function(a) {
- if (i.is(":visible")) {
- if (a.shiftKey && a.keyCode == 13) {
- $(".aEdit").append("
");
- } else if (a.keyCode == 13) {
- $('.aButtons > button[value="ok"]').click();
- } else if (a.keyCode == 27) {
- $('.aButtons > button[value="cancel"]').click();
- }
- }
- });
- var n = $(".aTextbox").val();
- if (!n) {
- n = false;
- }
- $(".aTextbox").on("keydown blur", function() {
- n = $(this).val();
- });
- var o = $(".aEdit").val();
- if (!o) {
- o = false;
- }
- $(".aEdit").on("keydown blur", function() {
- o = $(this).val();
- });
- $(".aButtons > button").click(function() {
- i.remove();
- h.remove();
- if (c) {
- $(this).text("");
- var a = $(this).attr("value");
- if (a == "ok") {
- if (b) {
- if (b.input) {
- c(n);
- } else if (b.textarea) {
- c(o);
- } else {
- c(true);
- }
- } else {
- c(true);
- }
- $("#mChatMessage").focus();
- } else if (a == "cancel") {
- c(false);
- $("#mChatMessage").focus();
- }
- }
- });
- }
});
diff --git a/styles/prosilver/template/mchat.min.js b/styles/prosilver/template/mchat.min.js
index 1f72d69..1633b2a 100644
--- a/styles/prosilver/template/mchat.min.js
+++ b/styles/prosilver/template/mchat.min.js
@@ -22,4 +22,4 @@
interval:700
});
**/
-jQuery(function(t){function e(e,a,s){e=''+e+"";var o={confirm:!1,verify:!1,input:!1,textarea:!1,animate:!1,textOk:"Ok",textCancel:"Cancel",textYes:"Yes",textNo:"No",position:"center"};if(a)for(var n in o)"undefined"==typeof a[n]&&(a[n]=o[n]);var m=t(document).height(),i=t(document).width(),h=t(''),r=t(''),c=t(''),l=t(''),u=300;if(r.css({height:m,width:i}).appendTo("body").fadeIn(100,function(){t(this).css("filter","alpha(opacity=70)")}),h.prependTo("body"),c.append(e).appendTo(h),a&&(a.input&&("string"==typeof a.input?c.append(''):c.append(''),t(".aTextbox").focus()),"string"==typeof a.textarea&&(c.append('"),t(".aEdit").focus())),c.append(l),a?a.confirm||a.input?(l.append('"),l.append('")):a.verify?(l.append('"),l.append('")):l.append('"):l.append(''),h.css("left",(t(window).width()-t(".appriseOuter").width())/2+t(window).scrollLeft()+"px"),a)if(a.position&&"center"===a.position&&(u=(m-h.height())/2),a.animate){var C=a.animate;isNaN(C)&&(C=400),h.css("top","-200px").show().animate({top:u},C)}else h.css("top",u).fadeIn(200);else h.css("top",u).fadeIn(200);t(document).keydown(function(e){r.is(":visible")&&(e.shiftKey&&13==e.keyCode?t(".aEdit").append("
"):13==e.keyCode?t('.aButtons > button[value="ok"]').click():27==e.keyCode&&t('.aButtons > button[value="cancel"]').click())});var d=t(".aTextbox").val();d||(d=!1),t(".aTextbox").on("keydown blur",function(){d=t(this).val()});var f=t(".aEdit").val();f||(f=!1),t(".aEdit").on("keydown blur",function(){f=t(this).val()}),t(".aButtons > button").click(function(){if(r.remove(),h.remove(),s){t(this).text("");var e=t(this).attr("value");"ok"==e?(s(a?a.input?d:a.textarea?f:!0:!0),t("#mChatMessage").focus()):"cancel"==e&&(s(!1),t("#mChatMessage").focus())}})}var a=!0;mChat.archiveMode||(mChat.messageTop||t("#mChatmain").animate({scrollTop:t("#mChatmain")[0].scrollHeight},1e3,"swing"),mChat.pause&&t("#mChatMessage").on("keypress",function(){clearInterval(mChat.interval),t("#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG").hide(),t("#mChatRefreshText").html(mChat.refreshNo).addClass("mchat-alert"),t("#mChatPauseIMG").show()}),t([window,document]).blur(function(){a=!1}).focus(function(){a=!0}),t.fn.preventDoubleSubmit=function(){var e=!1;return t(this).submit(function(){return e?!1:void(e=!0)})},t.fn.autoGrowInput=function(e){var a=t(".mChatPanel").width();return e=t.extend({maxWidth:a-20,minWidth:0,comfortZone:20},e),this.filter("input:text").each(function(){var a=e.minWidth||t(this).width(),s="",o=t(this),n=t("").css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:o.css("fontSize"),fontFamily:o.css("fontFamily"),fontWeight:o.css("fontWeight"),letterSpacing:o.css("letterSpacing"),whiteSpace:"nowrap"}),m=function(){if(s!==(s=o.val())){var t=s.replace(/&/g,"&").replace(/\s/g," ").replace(//g,">");n.html(t);var m=n.width(),i=m+e.comfortZone>=a?m+e.comfortZone:a,h=o.width(),r=h>i&&i>=a||i>a&&i=e&&(e="0"+e),a%=60,9>=a&&(a="0"+a),s%=60,9>=s&&(s="0"+s);var o=s+":"+a+":"+e;t("#mChatSessMess").html(mChat.sessEnds+" "+o),mChat.sessionTime<=0&&(clearInterval(mChat.counter),t("#mChatSessMess").html(mChat.sessOut).addClass("mchat-alert"))},clear:function(){if(""===t("#mChatMessage").val())return!1;var e=confirm(mChat.reset);e?(t("#mChatRefreshText").removeClass("mchat-alert"),mChat.pause&&(mChat.interval=setInterval(mChat.refresh,mChat.refreshTime)),t("#mChatOkIMG").show(),t("#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG").hide(),t("#mChatRefreshText").html(mChat.refreshYes),t("#mChatMessage").val("").focus()):t("#mChatMessage").focus()},sound:function(e){"yes"!=t.cookie("mChatNoSound")&&(navigator.userAgent.match(/MSIE ([0-9]+)\./)||navigator.userAgent.match(/Trident\/7.0; rv 11.0/)?t("#mChatSound").html(''):t("#mChatSound").html(''))},notice:function(){a&&document.hasFocus()||t.titleAlert(mChat.newMessageAlert,{interval:1e3})},toggle:function(e){t("#mChat"+e).slideToggle("normal",function(){t("#mChat"+e).is(":visible")?t.cookie("mChatShow"+e,"yes"):t("#mChat"+e).is(":hidden")&&t.cookie("mChatShow"+e,null)})},add:function(){if(""===t("#mChatMessage").val())return!1;var e=t("#mChatMessage").val().replace(/ /g,"");return mChat.mssgLngth&&e.length>mChat.mssgLngth?void alert(mChat.mssgLngthLong):void t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:t("#postform").serialize(),dataType:"text",beforeSend:function(){t("#submit_button").attr("disabled","disabled"),mChat.userTimeout&&(clearInterval(mChat.activeInterval),clearInterval(mChat.counter)),clearInterval(mChat.interval)},success:function(){mChat.refresh()},error:function(t){400==t.status?alert(mChat.flood):403==t.status?alert(mChat.noAccess):501==t.status&&alert(mChat.noMessageInput)},complete:function(){t("#mChatNoMessage").remove(),t("#submit_button").removeAttr("disabled"),mChat.interval=setInterval(mChat.refresh,mChat.refreshTime),mChat.userTimeout&&(mChat.sessionTime=mChat.userTimeout?mChat.userTimeout/1e3:!1,mChat.counter=setInterval(mChat.countDown,1e3),mChat.activeInterval=setInterval(mChat.active,mChat.userTimeout)),t("#mChatMessage").val("").focus()}})},edit:function(){var a=t(this).closest(".mChatHover").data("id"),s=t("#mess"+a).data("edit");e(mChat.editInfo,{textarea:s,animate:!0,position:200,confirm:!0},function(e){e&&t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:{mode:"edit",message_id:a,message:e},dataType:"text",beforeSend:function(){clearInterval(mChat.interval),mChat.userTimeout&&(clearInterval(mChat.activeInterval),clearInterval(mChat.counter),t("#mChatSessTimer").html(mChat.refreshing))},success:function(e){t("#mess"+a).fadeOut("slow",function(){t(this).replaceWith(e),t("#mess"+a).css("display","none").fadeIn("slow")})},error:function(t){403==t.status?alert(mChat.noAccess):501==t.status&&alert(mChat.noMessageInput)},complete:function(){mChat.interval=setInterval(mChat.refresh,mChat.refreshTime),mChat.userTimeout&&(mChat.sessionTime=mChat.userTimeout?mChat.userTimeout/1e3:!1,mChat.counter=setInterval(mChat.countDown,1e3),mChat.activeInterval=setInterval(mChat.active,mChat.userTimeout)),mChat.archiveMode||mChat.messageTop||setTimeout(function(){t("#mChatmain").animate({scrollTop:t("#mChatmain")[0].scrollHeight},1e3,"swing")},1500)}})})},del:function(){var a=t(this).closest(".mChatHover").data("id");e(mChat.delConfirm,{position:200,animate:!0,confirm:!0},function(e){return e?void t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:{mode:"delete",message_id:a},beforeSend:function(){clearInterval(mChat.interval),mChat.userTimeout&&(clearInterval(mChat.activeInterval),clearInterval(mChat.counter),t("#mChatSessTimer").html(mChat.refreshing))},success:function(){t("#mess"+a).fadeOut("slow",function(){t(this).remove()}),mChat.sound(mChat.forumRoot+"ext/dmzx/mchat/sounds/del.swf")},error:function(){alert(mChat.noAccess)},complete:function(){mChat.interval=setInterval(mChat.refresh,mChat.refreshTime),mChat.userTimeout&&(mChat.sessionTime=mChat.userTimeout?mChat.userTimeout/1e3:!1,mChat.counter=setInterval(mChat.countDown,1e3),mChat.activeInterval=setInterval(mChat.active,mChat.userTimeout))}}):!1})},refresh:function(){if(!mChat.archiveMode){var e=mChat.messageTop?":first":":last",a=0;if(t("#mChatData").children().not("#mChatNoMessage").length){t("#mChatNoMessage").remove();var s=t("#mChatData").children(e).not("#mChatNoMessage").attr("id");s&&(a=s.replace("mess",""))}t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:{mode:"read",message_last_id:a},dataType:"html",beforeSend:function(){t("#mChatOkIMG,#mChatErrorIMG,#mChatPauseIMG").hide(),t("#mChatLoadIMG").show()},success:function(e){var a=t(t.trim(e));a.length&&(t("#mChatRefreshText").removeClass("mchat-alert"),a.hide(),mChat.messageTop?t("#mChatData").prepend(a):t("#mChatData").append(a),a.fadeIn("slow"),t("#mChatmain").stop().animate({scrollTop:mChat.messageTop?0:t("#mChatmain")[0].scrollHeight},2e3),mChat.sound(mChat.forumRoot+"ext/dmzx/mchat/sounds/add.swf"),mChat.notice()),setTimeout(function(){t("#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG").hide(),t("#mChatOkIMG").show(),t("#mChatRefreshText").html(mChat.refreshYes)},500)},error:function(){t("#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo").hide(),t("#mChatErrorIMG").show(),mChat.sound(mChat.forumRoot+"ext/dmzx/mchat/sounds/error.swf")},complete:function(){t("#mChatData").children(e).length||t("#mChatData").append(''+mChat.noMessages+"
").show("slow")}})}},stats:function(){mChat.whois&&t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:{mode:"stats"},dataType:"html",beforeSend:function(){mChat.customPage&&(t("#mChatRefreshN").show(),t("#mChatRefresh").hide())},success:function(e){var a=t.parseJSON(e);t("#mChatStats").replaceWith(a.message),mChat.customPage&&setTimeout(function(){t("#mChatRefreshN").hide(),t("#mChatRefresh").show()},500)},error:function(){mChat.sound(mChat.forumRoot+"ext/dmzx/mchat/sounds/error.swf")},complete:function(){t("#mChatUserList").length&&("yes"==t.cookie("mChatShowUserList")||mChat.customPage)&&t("#mChatUserList").css("display","block")}})},active:function(){!mChat.archiveMode&&mChat.userTimeout&&(clearInterval(mChat.interval),t("#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG").hide(),t("#mChatPauseIMG").show(),t("#mChatRefreshText").html(mChat.refreshNo).addClass("mchat-alert"),t("#mChatSessMess").html(mChat.sessOut).addClass("mchat-alert"))},insertMention:function(){var e=t(this).closest(".mChatHover"),a=mChat.entityDecode(e.data("username")),s=e.data("usercolor");s?a="[b][color="+s+"]"+a+"[/color][/b]":mChat.allowBBCodes&&(a="[b]"+a+"[/b]"),insert_text("@ "+a+", ")},insertQuote:function(){var e=t(this).closest(".mChatHover"),a=mChat.entityDecode(e.data("username")),s=e.data("id"),o=mChat.entityDecode(t("#mess"+s).data("edit"));insert_text('[quote="'+a+'"]'+o+"[/quote]")},insertLike:function(){var e=t(this).closest(".mChatHover"),a=mChat.entityDecode(e.data("username")),s=mChat.entityDecode(e.data("edit"));insert_text(mChat.likes+'[quote="'+a+'"]'+s+"[/quote]")},entityDecode:function(t){var e=decodeURIComponent(t.replace(/\+/g," "));return e=e.replace(/</g,"<"),e=e.replace(/>/g,">"),e=e.replace(/:/g,":"),e=e.replace(/./g,"."),e=e.replace(/&/g,"&"),e=e.replace(/"/g,'"')}}),mChat.interval=setInterval(mChat.refresh,mChat.refreshTime),mChat.statsInterval=setInterval(mChat.stats,mChat.whoisRefresh),mChat.activeInterval=setInterval(mChat.active,mChat.userTimeout),mChat.sessionTime=mChat.userTimeout?mChat.userTimeout/1e3:!1,mChat.userTimeout&&(mChat.counter=setInterval(mChat.countDown,1e3)),"yes"==t.cookie("mChatShowSmiles")&&t("#mChatSmiles").css("display","none")&&t("#mChatSmiles").slideToggle("slow"),"yes"==t.cookie("mChatShowBBCodes")&&t("#mChatBBCodes").css("display","none")&&t("#mChatBBCodes").slideToggle("slow"),"yes"==t.cookie("mChatShowUserList")&&t("#mChatUserList").length&&t("#mChatUserList").slideToggle("slow"),"yes"==t.cookie("mChatShowColour")&&t("#mChatColour").css("display","none")&&t("#mChatColour").slideToggle("slow"),t("#mChatUseSound").change(function(){t.cookie("mChatNoSound",t(this).is(":checked")?null:"yes")}),t("#mChatData").on("click","span.mChatInsertMention",mChat.insertMention).on("click","img.mChatInsertQuote",mChat.insertQuote).on("click","img.mChatInsertLike",mChat.insertLike).on("click","img.mChatEdit",mChat.edit).on("click","img.mChatDelete",mChat.del)});
+jQuery(function(t){var e=!0;mChat.archiveMode||(mChat.messageTop||t("#mChatmain").animate({scrollTop:t("#mChatmain")[0].scrollHeight},1e3,"swing"),!mChat.archiveMode&&mChat.pause&&t("#mChatMessage").on("keypress",function(){clearInterval(mChat.interval),t("#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG").hide(),t("#mChatRefreshText").html(mChat.refreshNo).addClass("mchat-alert"),t("#mChatPauseIMG").show()}),t([window,document]).blur(function(){e=!1}).focus(function(){e=!0}),t.fn.preventDoubleSubmit=function(){var e=!1;return t(this).submit(function(){return e?!1:void(e=!0)})},t.fn.autoGrowInput=function(e){var a=t(".mChatPanel").width();return e=t.extend({maxWidth:a-20,minWidth:0,comfortZone:20},e),this.filter("input:text").each(function(){var a=e.minWidth||t(this).width(),s="",m=t(this),o=t("").css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:m.css("fontSize"),fontFamily:m.css("fontFamily"),fontWeight:m.css("fontWeight"),letterSpacing:m.css("letterSpacing"),whiteSpace:"nowrap"}),h=function(){if(s!==(s=m.val())){var t=s.replace(/&/g,"&").replace(/\s/g," ").replace(//g,">");o.html(t);var h=o.width(),n=h+e.comfortZone>=a?h+e.comfortZone:a,r=m.width(),i=r>n&&n>=a||n>a&&n=e&&(e="0"+e),a%=60,9>=a&&(a="0"+a),s%=60,9>=s&&(s="0"+s);var m=s+":"+a+":"+e;t("#mChatSessMess").html(mChat.sessEnds+" "+m),mChat.sessionTime<=0&&(clearInterval(mChat.counter),t("#mChatSessMess").html(mChat.sessOut).addClass("mchat-alert"))},clear:function(){if(""===t("#mChatMessage").val())return!1;var e=confirm(mChat.reset);e?(t("#mChatRefreshText").removeClass("mchat-alert"),!mChat.archiveMode&&mChat.pause&&(mChat.interval=setInterval(mChat.refresh,mChat.refreshTime)),t("#mChatOkIMG").show(),t("#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG").hide(),t("#mChatRefreshText").html(mChat.refreshYes),t("#mChatMessage").val("").focus()):t("#mChatMessage").focus()},sound:function(e){"yes"!=t.cookie("mChatNoSound")&&(e=mChat.extUrl+"sounds/"+e+".swf",navigator.userAgent.match(/MSIE ([0-9]+)\./)||navigator.userAgent.match(/Trident\/7.0; rv 11.0/)?t("#mChatSound").html(''):t("#mChatSound").html(''))},notice:function(){e&&document.hasFocus()||t.titleAlert(mChat.newMessageAlert,{interval:1e3})},toggle:function(e){t("#mChat"+e).slideToggle("normal",function(){t("#mChat"+e).is(":visible")?t.cookie("mChatShow"+e,"yes"):t("#mChat"+e).is(":hidden")&&t.cookie("mChatShow"+e,null)})},add:function(){if(""===t("#mChatMessage").val())return!1;var e=t("#mChatMessage").val().replace(/ /g,"");return mChat.mssgLngth&&e.length>mChat.mssgLngth?void alert(mChat.mssgLngthLong):void t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:t("#postform").serialize(),dataType:"text",beforeSend:function(){t("#submit_button").attr("disabled","disabled"),mChat.userTimeout&&(clearInterval(mChat.activeInterval),clearInterval(mChat.counter)),clearInterval(mChat.interval)},success:function(){mChat.refresh()},error:function(t){400==t.status?alert(mChat.flood):403==t.status?alert(mChat.noAccess):501==t.status&&alert(mChat.noMessageInput)},complete:function(){t("#mChatNoMessage").remove(),t("#submit_button").removeAttr("disabled"),mChat.interval=setInterval(mChat.refresh,mChat.refreshTime),mChat.userTimeout&&(mChat.sessionTime=mChat.userTimeout/1e3,mChat.counter=setInterval(mChat.countDown,1e3),mChat.activeInterval=setInterval(mChat.active,mChat.userTimeout)),t("#mChatMessage").val("").focus()}})},edit:function(){var e=t(this).closest(".mChatHover").data("id"),a=mChat.confirmContainer.find("textarea").show().val(t("#mess"+e).data("edit"));mChat.confirmContainer.find("p").text(mChat.editInfo),phpbb.confirm(mChat.confirmContainer,function(){t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:{mode:"edit",message_id:e,message:a.val()},dataType:"text",beforeSend:function(){clearInterval(mChat.interval),mChat.userTimeout&&(clearInterval(mChat.activeInterval),clearInterval(mChat.counter),t("#mChatSessTimer").html(mChat.refreshing))},success:function(a){t("#mess"+e).fadeOut("slow",function(){t(this).replaceWith(a),t("#mess"+e).css("display","none").fadeIn("slow")})},error:function(t){403==t.status?alert(mChat.noAccess):501==t.status&&alert(mChat.noMessageInput)},complete:function(){mChat.interval=setInterval(mChat.refresh,mChat.refreshTime),mChat.userTimeout&&(mChat.sessionTime=mChat.userTimeout?mChat.userTimeout/1e3:!1,mChat.counter=setInterval(mChat.countDown,1e3),mChat.activeInterval=setInterval(mChat.active,mChat.userTimeout)),mChat.archiveMode||mChat.messageTop||setTimeout(function(){t("#mChatmain").animate({scrollTop:t("#mChatmain")[0].scrollHeight},1e3,"swing")},1500)}})})},del:function(){var e=t(this).closest(".mChatHover").data("id");mChat.confirmContainer.find("textarea").hide(),mChat.confirmContainer.find("p").text(mChat.delConfirm),phpbb.confirm(mChat.confirmContainer,function(){t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:{mode:"delete",message_id:e},beforeSend:function(){clearInterval(mChat.interval),mChat.userTimeout&&(clearInterval(mChat.activeInterval),clearInterval(mChat.counter),t("#mChatSessTimer").html(mChat.refreshing))},success:function(){t("#mess"+e).fadeOut("slow",function(){t(this).remove()}),mChat.sound("del")},error:function(){alert(mChat.noAccess)},complete:function(){mChat.interval=setInterval(mChat.refresh,mChat.refreshTime),mChat.userTimeout&&(mChat.sessionTime=mChat.userTimeout?mChat.userTimeout/1e3:!1,mChat.counter=setInterval(mChat.countDown,1e3),mChat.activeInterval=setInterval(mChat.active,mChat.userTimeout))}})})},refresh:function(){if(!mChat.archiveMode){var e=mChat.messageTop?":first":":last",a=0;if(t("#mChatData").children().not("#mChatNoMessage").length){t("#mChatNoMessage").remove();var s=t("#mChatData").children(e).not("#mChatNoMessage").attr("id");s&&(a=s.replace("mess",""))}t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:{mode:"read",message_last_id:a},dataType:"html",beforeSend:function(){t("#mChatOkIMG,#mChatErrorIMG,#mChatPauseIMG").hide(),t("#mChatLoadIMG").show()},success:function(e){var a=t(t.trim(e));a.length&&(t("#mChatRefreshText").removeClass("mchat-alert"),a.hide(),mChat.messageTop?t("#mChatData").prepend(a):t("#mChatData").append(a),a.fadeIn("slow"),t("#mChatmain").stop().animate({scrollTop:mChat.messageTop?0:t("#mChatmain")[0].scrollHeight},2e3),mChat.sound("add"),mChat.notice()),setTimeout(function(){t("#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG").hide(),t("#mChatOkIMG").show(),t("#mChatRefreshText").html(mChat.refreshYes)},500)},error:function(){t("#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo").hide(),t("#mChatErrorIMG").show(),mChat.sound("error")},complete:function(){t("#mChatData").children(e).length||t("#mChatData").append(''+mChat.noMessages+"
").show("slow")}})}},stats:function(){t.ajax({url:mChat.file,timeout:1e4,type:"POST",data:{mode:"stats"},dataType:"html",beforeSend:function(){mChat.customPage&&(t("#mChatRefreshN").show(),t("#mChatRefresh").hide())},success:function(e){var a=t.parseJSON(e);t("#mChatStats").replaceWith(a.message),mChat.customPage&&setTimeout(function(){t("#mChatRefreshN").hide(),t("#mChatRefresh").show()},500)},error:function(){mChat.sound("error")},complete:function(){t("#mChatUserList").length&&("yes"==t.cookie("mChatShowUserList")||mChat.customPage)&&t("#mChatUserList").css("display","block")}})},active:function(){!mChat.archiveMode&&mChat.userTimeout&&(clearInterval(mChat.interval),t("#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG").hide(),t("#mChatPauseIMG").show(),t("#mChatRefreshText").html(mChat.refreshNo).addClass("mchat-alert"),t("#mChatSessMess").html(mChat.sessOut).addClass("mchat-alert"))},insertMention:function(){var e=t(this).closest(".mChatHover"),a=mChat.entityDecode(e.data("username")),s=e.data("usercolor");s?a="[b][color="+s+"]"+a+"[/color][/b]":mChat.allowBBCodes&&(a="[b]"+a+"[/b]"),insert_text("@ "+a+", ")},insertQuote:function(){var e=t(this).closest(".mChatHover"),a=mChat.entityDecode(e.data("username")),s=e.data("id"),m=mChat.entityDecode(t("#mess"+s).data("edit"));insert_text('[quote="'+a+'"]'+m+"[/quote]")},insertLike:function(){var e=t(this).closest(".mChatHover"),a=mChat.entityDecode(e.data("username")),s=mChat.entityDecode(e.data("edit"));insert_text(mChat.likes+'[quote="'+a+'"]'+s+"[/quote]")},entityDecode:function(t){var e=decodeURIComponent(t.replace(/\+/g," "));return e=e.replace(/</g,"<"),e=e.replace(/>/g,">"),e=e.replace(/:/g,":"),e=e.replace(/./g,"."),e=e.replace(/&/g,"&"),e=e.replace(/"/g,'"')}}),mChat.interval=setInterval(mChat.refresh,mChat.refreshTime),mChat.activeInterval=setInterval(mChat.active,mChat.userTimeout),mChat.sessionTime=mChat.userTimeout?mChat.userTimeout/1e3:!1,mChat.confirmContainer=t("#mChatConfirm").detach().show(),mChat.userTimeout&&(mChat.counter=setInterval(mChat.countDown,1e3)),mChat.whois&&(mChat.statsInterval=setInterval(mChat.stats,mChat.whoisRefresh)),"yes"==t.cookie("mChatShowSmiles")&&t("#mChatSmiles").css("display","none")&&t("#mChatSmiles").slideToggle("slow"),"yes"==t.cookie("mChatShowBBCodes")&&t("#mChatBBCodes").css("display","none")&&t("#mChatBBCodes").slideToggle("slow"),"yes"==t.cookie("mChatShowUserList")&&t("#mChatUserList").length&&t("#mChatUserList").slideToggle("slow"),"yes"==t.cookie("mChatShowColour")&&t("#mChatColour").css("display","none")&&t("#mChatColour").slideToggle("slow"),t("#mChatUseSound").change(function(){t.cookie("mChatNoSound",t(this).is(":checked")?null:"yes")}),t("#mChatData").on("click","span.mChatInsertMention",mChat.insertMention).on("click","img.mChatInsertQuote",mChat.insertQuote).on("click","img.mChatInsertLike",mChat.insertLike).on("click","img.mChatEdit",mChat.edit).on("click","img.mChatDelete",mChat.del)});
diff --git a/styles/prosilver/template/mchat_body.html b/styles/prosilver/template/mchat_body.html
index 7ce4aa8..038f778 100644
--- a/styles/prosilver/template/mchat_body.html
+++ b/styles/prosilver/template/mchat_body.html
@@ -49,11 +49,11 @@
messageTop : truefalse,
noMessage : '{MCHAT_NOMESSAGE_MODE}',
file : '{MCHAT_FILE_NAME}',
- forumRoot : '{ROOT_PATH}',
- customPage : '{MCHAT_CUSTOM_PAGE}',
- pause : '{MCHAT_PAUSE_ON_INPUT}'false,
- refreshTime : '{MCHAT_REFRESH_JS}'false,
- userTimeout : '{MCHAT_USER_TIMEOUT}'false,
+ extUrl : '{EXT_URL}',
+ customPage : truefalse,
+ pause : truefalse,
+ refreshTime : {MCHAT_REFRESH_JS},
+ userTimeout : {MCHAT_USER_TIMEOUT},
newMessageAlert : '{LA_MCHAT_NEW_CHAT}',
noMessageInput : '{LA_MCHAT_NOMESSAGEINPUT}',
noMessages : '{LA_MCHAT_NOMESSAGE}',
@@ -69,10 +69,10 @@
refreshNo : '{LA_MCHAT_REFRESH_NO}',
mssgLngthLong : '{MCHAT_MESS_LONG}',
likes : '{LA_MCHAT_LIKES}',
- mssgLngth : '{MCHAT_MESSAGE_LNGTH}'false,
+ mssgLngth : {MCHAT_MESSAGE_LNGTH},
playSound : truefalse,
whois : truefalse,
- whoisRefresh : '{MCHAT_WHOIS_REFRESH}'false,
+ whoisRefresh : {MCHAT_WHOIS_REFRESH},
focusFix : falsetrue,
archiveMode : truefalse
};
@@ -83,6 +83,15 @@
class="mChatRowLimitCustom" style="height: {MCHAT_CUSTOM_HEIGHT}px;"class="mChatRowLimit" style="height: {MCHAT_INDEX_HEIGHT}px;">
+
+
{L_CONFIRM}
+
+
+
+
@@ -135,10 +144,10 @@
-

-

-

-

+

+

+

+
{MCHAT_REFRESH_YES} •
•
{L_MCHAT_COPYRIGHT}
diff --git a/styles/prosilver/theme/mchat.css b/styles/prosilver/theme/mchat.css
index 0d68189..f7d6a48 100644
--- a/styles/prosilver/theme/mchat.css
+++ b/styles/prosilver/theme/mchat.css
@@ -6,39 +6,25 @@
*
*/
-/* mChat
------------- */
div.mChatBG1 {
- background: -webkit-linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
- background: -o-linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
- background: -moz-linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
- background: linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
- border: 1px solid #999999;
- -webkit-border-radius: 6px;
- -o-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- padding: 5px;
- color: #333333;
- margin-right: 1px;
- overflow: hidden;
+ background: linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
+ border: 1px solid #999999;
+ border-radius: 6px;
+ padding: 5px;
+ color: #333333;
+ margin-right: 1px;
+ overflow: hidden;
}
div.mChatBG2 {
- background: -webkit-linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
- background: -o-linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
- background: -moz-linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
- background: linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
- border: 1px solid #999999;
- -webkit-border-radius: 6px;
- -o-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- padding: 5px;
- color: #444444;
- margin-right: 1px;
- text-align: left;
- overflow: hidden;
+ background: linear-gradient(#B6BFC4, #FFFFFF, #FFFFFF, #B6BFC4);
+ border: 1px solid #999999;
+ border-radius: 6px;
+ padding: 5px;
+ color: #444444;
+ margin-right: 1px;
+ text-align: left;
+ overflow: hidden;
}
div.mChatRowLimit {
overflow: auto;
@@ -109,7 +95,7 @@ input.mChatColor {
width: 100%;
text-align: center;
background-color: #DEE3E7;
- border-style: none;
+ border-style: none;
}
div.mChatMessage {
@@ -120,18 +106,19 @@ div.mChatMessage {
}
div.mChatMessage li {
- margin-left: 30px;
+ margin-left: 30px;
}
div.mChatMessage blockquote {
- margin: 2px 0;
+ margin: 2px 0;
}
a.mChatScriptLink {
- text-decoration:none;
+ text-decoration: none;
}
-img.mChatImage{
+img.mChatImage {
+ margin-top: -4px;
vertical-align: middle;
}
@@ -159,8 +146,8 @@ img.mChatImageOk {
}
img.mChatImageHideImg {
- vertical-align: middle;
- cursor: help;
+ vertical-align: middle;
+ cursor: help;
display: none;
}
@@ -189,115 +176,9 @@ div.avatarMessage {
margin-left: 50px;
width: 90%;
margin-right: 5px;
-}
-
-.appriseOverlay
- {
- position:fixed;
- top:0;
- left:0;
- background:rgba(0, 0, 0, 0.3);
- display:none;
- }
-.appriseOuter
- {
- background:#dcdee2;
- border:1px solid #fff;
- box-shadow:0px 3px 7px #333;
- -moz-box-shadow:0px 3px 7px #333;
- -webkit-box-shadow:0px 3px 7px #333;
- -moz-border-radius:4px;
- -webkit-border-radius:4px;
- border-radius:4px;
- -khtml-border-radius:4px;
- position:absolute;
- z-index:99999999;
- min-width:200px;
- min-height:50px;
- max-width:75%;
- position:fixed;
- display:none;
- }
-.appriseInner
- {
- padding:20px;
- color:#333;
- text-shadow:0px 1px 0px #fff;
- font-weight: bold;
- }
-.appriseInner button
- {
- border:1px solid #666666;
- -moz-border-radius:3px;
- -webkit-border-radius:3px;
- border-radius:3px;
- -khtml-border-radius:3px;
- background: -moz-linear-gradient(100% 100% 90deg, #eee, #d5d5d5);
- background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eee), to(#d5d5d5));
- background: -webkit-linear-gradient(#eee, #d5d5d5);
- background: -o-linear-gradient(#eee, #d5d5d5);
- color:#000000;
- font-size:12px;
- font-weight:bold;
- padding:4px 10px;
- margin:0 3px;
- text-shadow:0px 1px 0px #fff;
- cursor:pointer;
- box-shadow:0px 1px 2px #ccc;
- -moz-box-shadow:0px 1px 2px #ccc;
- -webkit-box-shadow:0px 1px 2px #ccc;
- }
-.appriseInner button:hover
- {
- color:#d85054;
- }
-.aButtons, .aInput
- {
- margin:20px 10px 0px 10px;
- text-align:center;
- }
-.aTextbox
- {
- border:1px solid #aaa;
- -moz-border-radius:4px;
- -webkit-border-radius:4px;
- border-radius:4px;
- -khtml-border-radius:4px;
- box-shadow:0px 1px 0px #fff;
- -moz-box-shadow:0px 1px 0px #fff;
- -webkit-box-shadow:0px 1px 0px #fff;
- width:180px;
- font-size:12px;
- font-weight:bold;
- padding:5px 10px;
- }
-.no-rgba .appriseOverlay{
- opacity: .30;
- filter: alpha(opacity = 30) !important;
- background: #000;
- zoom: 1;
-}
-.no-borderradius .appriseOuter{
- border:1px solid #888;
-}
-.appriseOverlay {
- background-color:#222222;
- border:medium none;
- cursor:wait;
- height:100%;
- left:0;
- margin:0;
- padding:0;
- position:fixed;
- top:0;
- width:100%;
- z-index:1000;
- filter:alpha(opacity=70);
- opacity:0.70;
}
-/* Change buttons height
------------- */
-.mChatImage {
- margin-top: -4px;
+#mChatConfirm textarea {
+ width: 100%;
+ height: 100px;
}