This commit is contained in:
dmzx committed 2015-04-22 21:34:31 +02:00
1 parent 306c02bca5
commit bdd08b5d61
27 files changed
+444 -444

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
/*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]Line truncated
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]Line truncated
+5 -5
View File
@@ -1,13 +1,13 @@
/*
@author: remy sharp / http://remysharp.com
@params:
@author: remy sharp / http://remysharp.com
@params:
feedback - the selector for the element that gives the user feedback. Note that this will be relative to the form the plugin is run against.
hardLimit - whether to stop the user being able to keep adding characters. Defaults to true.
useInput - whether to look for a hidden input named 'maxlength' instead of the maxlength attribute. Defaults to false.
words - limit by characters or words, set this to true to limit by words. Defaults to false.
@license: Creative Commons License - ShareAlike http://creativecommons.org/licenses/by-sa/3.0/
@version: 1.2
@changes: code tidy via Ariel Flesler and fix when pasting over limit and including \t or \n
@license: Creative Commons License - ShareAlike http://creativecommons.org/licenses/by-sa/3.0/
@version: 1.2
@changes: code tidy via Ariel Flesler and fix when pasting over limit and including \t or \n
*/
(function(a){a.fn.maxlength=function(b){function c(a){var c=a.value;if(b.words)c=a.value.length?c.split(/\s+/):{length:0};return c.length}if(typeof b=="string"){b={feedback:b}}b=a.extend({},a.fn.maxlength.defaults,b);return this.each(function(){function i(a){var d=c(this),e=d>=g,f=a.keyCode;if(!e)return;switch(f){case 8:case 9:case 17:case 36:case 35:case 37:case 38:case 39:case 40:case 46:case 65:return;default:return b.words&&f!=32&&f!=13&&d==g}}var d=this,e=a(d),f=a(d.form),g=b.useInput?f.find("input[name=maxlength]").val():e.attr("maxlength"),h=f.find(b.feedback);var j=function(){var e=c(d),f=g-e;h.html(f||"0");if(f<497){a("#charsreman").show()}else{a("#charsreman").hide()};if(f<499){a("#charsreman2").show()}else{a("#charsreman2").hide()};if(f<500){a("#charsreman3").show()}else{a("#charsreman3").hide()}if(b.hardLimit&&f<0){d.value=b.words?d.value.split(/(\s+)/,g*2-1).join(""):d.value.substr(0,g);j()}};e.keyup(j).change(j).focus(j);if(b.hardLimit){e.keydown(i)}j()})};a.fn.maxlength.defaults={useInput:false,hardLimit:true,feedback:".charsLeft",words:false}})(jQuery)
+211 -211
View File
@@ -11,46 +11,46 @@
var $jQ=jQuery.noConflict(true);
var hasFocus = true;
$jQ(function(){
if(!mChatArchiveMode){
var scrH=$jQ('#mChatmain')[0].scrollHeight;
$jQ('#mChatmain').animate({
scrollTop:scrH
},1000,'swing');
if(mChatPause){
$jQ('#mChatMessage').bind('keypress',function(){
if(!mChatArchiveMode){
var scrH=$jQ('#mChatmain')[0].scrollHeight;
$jQ('#mChatmain').animate({
scrollTop:scrH
},1000,'swing');
if(mChatPause){
$jQ('#mChatMessage').bind('keypress',function(){
clearInterval(interval);
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide();
$jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert');
$jQ('#mChatPauseIMG').show()
})
})
}
$jQ([window,document]).blur(function(){
$jQ([window,document]).blur(function(){
hasFocus = false
}).focus(function(){
}).focus(function(){
hasFocus = true
});
$jQ.fn.preventDoubleSubmit=function(){
});
$jQ.fn.preventDoubleSubmit=function(){
var alreadySubmitted=false;
return $jQ(this).submit(function(){
if(alreadySubmitted){
if(alreadySubmitted){
return false
}else{
alreadySubmitted=true
alreadySubmitted=true
}
})
})
};
$jQ.fn.autoGrowInput=function(o){
var width=$jQ('.mChatPanel').width();
o=$jQ.extend({
var width=$jQ('.mChatPanel').width();
o=$jQ.extend({
maxWidth:width-20,
minWidth:0,
comfortZone:20
},o);
},o);
this.filter('input:text').each(function(){
var minWidth=o.minWidth||$jQ(this).width(),
var minWidth=o.minWidth||$jQ(this).width(),
val='',
input=$jQ(this),
testSubject=$jQ('<div/>').css({
input=$jQ(this),
testSubject=$jQ('<div/>').css({
position:'absolute',
top:-9999,
left:-9999,
@@ -60,112 +60,112 @@ $jQ(function(){
fontWeight:input.css('fontWeight'),
letterSpacing:input.css('letterSpacing'),
whiteSpace:'nowrap'
}),
check=function(){
}),
check=function(){
if(val===(val=input.val())){
return
}
var escaped=val.replace(/&/g,'&amp;').replace(/\s/g,' ').replace(/</g,'&lt;').replace(/>/g,'&gt;');
testSubject.html(escaped);
var testerWidth=testSubject.width(),
newWidth=(testerWidth+o.comfortZone)>=minWidth?testerWidth+o.comfortZone:minWidth,
currentWidth=input.width(),
isValidWidthChange=(newWidth<currentWidth&&newWidth>=minWidth)||(newWidth>minWidth&&newWidth<o.maxWidth);
var escaped=val.replace(/&/g,'&amp;').replace(/\s/g,' ').replace(/</g,'&lt;').replace(/>/g,'&gt;');
testSubject.html(escaped);
var testerWidth=testSubject.width(),
newWidth=(testerWidth+o.comfortZone)>=minWidth?testerWidth+o.comfortZone:minWidth,
currentWidth=input.width(),
isValidWidthChange=(newWidth<currentWidth&&newWidth>=minWidth)||(newWidth>minWidth&&newWidth<o.maxWidth);
if(isValidWidthChange){
input.width(newWidth)
input.width(newWidth)
}
};
testSubject.insertAfter(input);
$jQ(this).bind('keypress blur change submit focus',check)
testSubject.insertAfter(input);
$jQ(this).bind('keypress blur change submit focus',check)
});
return this
return this
};
$jQ('input.mChatText').autoGrowInput();
$jQ('#postform').preventDoubleSubmit();
if(mChatSound&&$jQ.cookie('mChatNoSound')!='yes'){
$jQ.cookie('mChatNoSound',null);$jQ('#mChatUseSound').attr('checked','checked')
$jQ.cookie('mChatNoSound',null);$jQ('#mChatUseSound').attr('checked','checked')
} else {
$jQ.cookie('mChatNoSound','yes');
$jQ('#mChatUseSound').removeAttr('checked')
}
if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){
$jQ('#mChatUserList').show()
$jQ('#mChatUserList').show()
}
}
});
var mChat={
key:function(e){
if(e.shiftKey&&e.keyCode==13){
if(e.shiftKey&&e.keyCode==13){
$jQ('#mChatMessage').append("<br />");
} else if(e.keyCode==13){
} else if(e.keyCode==13){
mChat.add();
}
}
},
countDown:function(){
if($jQ('#mChatSessMess').hasClass('mchat-alert')){
if($jQ('#mChatSessMess').hasClass('mchat-alert')){
$jQ('#mChatSessMess').removeClass('mchat-alert')
}
session_time=session_time-1;
var sec=Math.floor(session_time);
var min=Math.floor(sec/60);
var hrs=Math.floor(min/60);
sec=(sec%60);
if(sec<=9){
}
session_time=session_time-1;
var sec=Math.floor(session_time);
var min=Math.floor(sec/60);
var hrs=Math.floor(min/60);
sec=(sec%60);
if(sec<=9){
sec="0"+sec
}
min=(min%60);
if(min<=9){
}
min=(min%60);
if(min<=9){
min="0"+min
}
hrs=(hrs%60);
if(hrs<=9){
}
hrs=(hrs%60);
if(hrs<=9){
hrs="0"+hrs
}
var time_left=hrs+":"+min+":"+sec;
$jQ('#mChatSessMess').html(mChatSessEnds+' '+time_left);
if(session_time<=0){
}
var time_left=hrs+":"+min+":"+sec;
$jQ('#mChatSessMess').html(mChatSessEnds+' '+time_left);
if(session_time<=0){
clearInterval(counter);
$jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert')
}
}
},
clear:function(){
if($jQ('#mChatMessage').val()==''){
return false
}
var answer=confirm(mChatReset);
if(answer){
if($jQ('#mChatMessage').val()==''){
return false
}
var answer=confirm(mChatReset);
if(answer){
if($jQ('#mChatRefreshText').hasClass('mchat-alert')){
$jQ('#mChatRefreshText').removeClass('mchat-alert')
}
if(mChatPause){
interval=setInterval(function(){
mChat.refresh()
},mChatRefresh)
},mChatRefresh)
}
$jQ('#mChatOkIMG').show();
$jQ('#mChatLoadIMG, #mChatErrorIMG, #mChatPauseIMG').hide();
$jQ('#mChatRefreshText').html(mChatRefreshYes);
$jQ('#mChatMessage').val('').focus()
} else {
} else {
$jQ('#mChatMessage').focus()
}
},
sound: function (file) {
if ($jQ.cookie('mChatNoSound') == 'yes') {
}
},
sound: function (file) {
if ($jQ.cookie('mChatNoSound') == 'yes') {
return
}
if (false || $.browser.msie) {
if (false || $.browser.msie) {
$('#mChatSound').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="0" width="0" type="application/x-shockwave-flash"><param name="movie" value="' + file + '"></object>');
} else {
$('#mChatSound').html('<embed src="' + file + '" width="0" height="0" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
}
},
alert:function(){
},
alert:function(){
if(!hasFocus||!document.hasFocus()){
$jQ.titleAlert(mChatNewMessageAlert)
}
},
toggle:function(id){
},
toggle:function(id){
$jQ('#mChat'+id).slideToggle('normal',function(){
if($jQ('#mChat'+id).is(':visible')){
$jQ.cookie('mChatShow'+id,'yes')
@@ -173,25 +173,25 @@ var mChat={
if($jQ('#mChat'+id).is(':hidden')){
$jQ.cookie('mChatShow'+id,null)}
}
)
)
},
add:function(){
if($jQ('#mChatMessage').val()==''){
return false
return false
}
var mChatMessChars=$jQ('#mChatMessage').val().replace(/ /g,'');
if(mChatMessChars.length>mChatMssgLngth&&mChatMssgLngth){
alert(mChatMssgLngthLong);
return
alert(mChatMssgLngthLong);
return
}
$jQ.ajax({
url:mChatFile,
timeout:10000,
async:false,
type:'POST',
data:$jQ('#postform').serialize(),
dataType:'text',
beforeSend:function(){
url:mChatFile,
timeout:10000,
async:false,
type:'POST',
data:$jQ('#postform').serialize(),
dataType:'text',
beforeSend:function(){
$jQ('#submit_button').attr('disabled','disabled');
if(mChatUserTimeout){
clearInterval(activeinterval);
@@ -203,12 +203,12 @@ var mChat={
mChat.refresh()
},
error:function(XMLHttpRequest){
if(XMLHttpRequest.status==400){
alert(mChatFlood)
if(XMLHttpRequest.status==400){
alert(mChatFlood)
}else if(XMLHttpRequest.status==403){
alert(mChatNoAccess)
alert(mChatNoAccess)
}else if(XMLHttpRequest.status==501){
alert(mChatNoMessageInput)
alert(mChatNoMessageInput)
}
},
complete:function(){
@@ -217,67 +217,67 @@ var mChat={
}
$jQ('#submit_button').removeAttr('disabled');
interval=setInterval(function(){
mChat.refresh()
mChat.refresh()
},
mChatRefresh);
if(mChatUserTimeout){
session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
counter=setInterval(function(){
mChat.countDown()
mChat.countDown()
},1000);
activeinterval=setInterval(function(){
mChat.active()
},mChatUserTimeout)
},mChatUserTimeout)
}
$jQ('#mChatMessage').val('').focus()
}
}
})
},
edit:function(id){
},
edit:function(id){
var message=$jQ('#edit'+id).val();
apprise(mChatEditInfo,{
'textarea':message,
'animate':true,
'position':200,
'confirm':true
'textarea':message,
'animate':true,
'position':200,
'confirm':true
}, function(r){
if(r){
$jQ.ajax({
$jQ.ajax({
url:mChatFile,
timeout:10000,
type:'POST',
data:{
type:'POST',
data:{
mode:'edit',
message_id:id,
message:r
},
dataType:'text',
beforeSend:function(){
},
dataType:'text',
beforeSend:function(){
clearInterval(interval);
if(mChatUserTimeout){
clearInterval(activeinterval);
clearInterval(counter);
$jQ('#mChatSessTimer').html(mChatRefreshing)
clearInterval(activeinterval);
clearInterval(counter);
$jQ('#mChatSessTimer').html(mChatRefreshing)
}
},
success:function(html){
$jQ('#mess'+id).fadeOut('slow',function(){
$jQ(this).replaceWith(html);
$jQ('#mess'+id).css('display','none').fadeIn('slow')
},
success:function(html){
$jQ('#mess'+id).fadeOut('slow',function(){
$jQ(this).replaceWith(html);
$jQ('#mess'+id).css('display','none').fadeIn('slow')
})
},
error:function(XMLHttpRequest){
},
error:function(XMLHttpRequest){
if(XMLHttpRequest.status==403){
alert(mChatNoAccess)
}else if(XMLHttpRequest.status==501){
alert(mChatNoMessageInput)
}
},
complete:function(){
},
complete:function(){
interval=setInterval(function(){
mChat.refresh()
},mChatRefresh);
if(mChatUserTimeout){
},mChatRefresh);
if(mChatUserTimeout){
session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
counter=setInterval(function(){
mChat.countDown()
@@ -285,81 +285,81 @@ var mChat={
activeinterval=setInterval(function(){
mChat.active()
},mChatUserTimeout)
}
if(!mChatArchiveMode){
}
if(!mChatArchiveMode){
scrH=$jQ('#mChatmain')[0].scrollHeight;
window.setTimeout(function(){
$jQ('#mChatmain').animate({
scrollTop:scrH},1000,'swing')
},1500)
}
}
}
}
}
)
}})
},
del:function(id){
apprise(mChatDelConfirm,{
'position':200,
'animate':true,
'confirm':true
apprise(mChatDelConfirm,{
'position':200,
'animate':true,
'confirm':true
},function(del){
if(del){
$jQ.ajax({
if(del){
$jQ.ajax({
url:mChatFile,
timeout:10000,
type:'POST',
data:{
mode:'delete',
mode:'delete',
message_id:id
},
beforeSend:function(){
clearInterval(interval);
if(mChatUserTimeout){
clearInterval(activeinterval);
clearInterval(counter);
$jQ('#mChatSessTimer').html(mChatRefreshing)
clearInterval(activeinterval);
clearInterval(counter);
$jQ('#mChatSessTimer').html(mChatRefreshing)
}
},
success:function(){
$jQ('#mess'+id).fadeOut('slow',function(){
$jQ('#mess'+id).fadeOut('slow',function(){
$jQ(this).remove()
});
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/del.swf')
});
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/del.swf')
},
error:function(){
alert(mChatNoAccess)
},
complete:function(){
interval=setInterval(function(){
mChat.refresh()
},mChatRefresh);
if(mChatUserTimeout){
mChat.refresh()
},mChatRefresh);
if(mChatUserTimeout){
session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
counter=setInterval(function(){
mChat.countDown()
mChat.countDown()
},1000);
activeinterval=setInterval(function(){
mChat.active()
activeinterval=setInterval(function(){
mChat.active()
},mChatUserTimeout)
}
}
}
})
} else {
return false;
}
});
} else {
return false;
}
});
},
refresh:function(){
if(mChatArchiveMode){
return
return
}
var mess_id=0;
if($jQ('#mChatData').children().not('#mChatNoMessage').length){
if($jQ('#mChatNoMessage')){
$jQ('#mChatNoMessage').remove()
$jQ('#mChatNoMessage').remove()
}
mess_id=$jQ('#mChatData').children(':last-child').attr('id').replace('mess','')
mess_id=$jQ('#mChatData').children(':last-child').attr('id').replace('mess','')
}
var oldScrH=$jQ('#mChatmain')[0].scrollHeight;
$jQ.ajax({
@@ -368,47 +368,47 @@ var mChat={
type:'POST',
async:true,
data:{
mode:'read',
message_last_id:mess_id
mode:'read',
message_last_id:mess_id
},
dataType:'html',
beforeSend:function(){
$jQ('#mChatOkIMG,#mChatErrorIMG,#mChatPauseIMG').hide();
$jQ('#mChatLoadIMG').show()
$jQ('#mChatOkIMG,#mChatErrorIMG,#mChatPauseIMG').hide();
$jQ('#mChatLoadIMG').show()
},
success:function(html){
if(html!=''&&html!=0){
if($jQ('#mChatRefreshText').hasClass('mchat-alert')){
if(html!=''&&html!=0){
if($jQ('#mChatRefreshText').hasClass('mchat-alert')){
$jQ('#mChatRefreshText').removeClass('mchat-alert')
}
$jQ('#mChatData').append(html).children(':last').not('#mChatNoMessage');
var newInner=$jQ('#mChatData').children().not('#mChatNoMessage').innerHeight();
var newH=oldScrH+newInner;
$jQ('#mChatmain').animate({
}
$jQ('#mChatData').append(html).children(':last').not('#mChatNoMessage');
var newInner=$jQ('#mChatData').children().not('#mChatNoMessage').innerHeight();
var newH=oldScrH+newInner;
$jQ('#mChatmain').animate({
scrollTop:newH
},'slow');
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/add.swf');
mChat.alert()
}
setTimeout(function(){
},'slow');
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/add.swf');
mChat.alert()
}
setTimeout(function(){
$jQ('#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG').hide();
$jQ('#mChatOkIMG').show();
$jQ('#mChatRefreshText').html(mChatRefreshYes)
},500)
},
error:function(){
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo,#mChatPauseIMG,').hide();
$jQ('#mChatErrorIMG').show();
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf')
},
complete:function(){
if(!$jQ('#mChatData').children(':last').length){
$jQ('#mChatData').append('<div id="mChatNoMessage">'+mChatNoMessage+'</div>').show('slow')
}
},500)
},
error:function(){
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo,#mChatPauseIMG,').hide();
$jQ('#mChatErrorIMG').show();
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf')
},
complete:function(){
if(!$jQ('#mChatData').children(':last').length){
$jQ('#mChatData').append('<div id="mChatNoMessage">'+mChatNoMessage+'</div>').show('slow')
}
}
})
},
stats:function(){
})
},
stats:function(){
if(!mChatWhois){
return
}
@@ -422,53 +422,53 @@ var mChat={
dataType:'html',
beforeSend:function(){
if(mChatCustomPage){
$jQ('#mChatRefreshN').show();
$jQ('#mChatRefresh').hide()
$jQ('#mChatRefreshN').show();
$jQ('#mChatRefresh').hide()
}
},
},
success: function (data) {
var json = $.parseJSON(data);
$('#mChatStats').replaceWith(json.message);
if(mChatCustomPage){
setTimeout(function(){
$jQ('#mChatRefreshN').hide();
$jQ('#mChatRefresh').show()
},500)
setTimeout(function(){
$jQ('#mChatRefreshN').hide();
$jQ('#mChatRefresh').show()
},500)
}
},
error:function(){
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf')
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf')
},
complete:function(){
if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){
$jQ('#mChatUserList').css('display','block')
}
if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){
$jQ('#mChatUserList').css('display','block')
}
}
})
})
},
active:function(){
if(mChatArchiveMode||!mChatUserTimeout){
return
}
clearInterval(interval);
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide();
$jQ('#mChatPauseIMG').show();
$jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert');
$jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert')
if(mChatArchiveMode||!mChatUserTimeout){
return
}
clearInterval(interval);
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide();
$jQ('#mChatPauseIMG').show();
$jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert');
$jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert')
}
};
var interval=setInterval(function(){
mChat.refresh()
},mChatRefresh);
var statsinterval=setInterval(function(){
mChat.stats()},mChatWhoisRefresh);
mChat.stats()},mChatWhoisRefresh);
var activeinterval=setInterval(function(){
mChat.active()},mChatUserTimeout);
mChat.active()},mChatUserTimeout);
var session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
if(mChatUserTimeout){
var counter=setInterval(function(){
mChat.countDown()
},1000)
var counter=setInterval(function(){
mChat.countDown()
},1000)
}
if($jQ.cookie('mChatShowSmiles')=='yes'&&$jQ('#mChatSmiles').css('display','none')){
$jQ('#mChatSmiles').slideToggle('slow')
@@ -484,18 +484,18 @@ var mChat={
}
$jQ('#mChatUseSound').change(function(){
if($jQ(this).is(':checked')){
$jQ.cookie('mChatNoSound',null)
$jQ.cookie('mChatNoSound',null)
}else{
$jQ.cookie('mChatNoSound','yes')
$jQ.cookie('mChatNoSound','yes')
}
});
});
function mChatTimeShow(id){
var tid = parseInt(id);
$(".mchatrow" + id).show();
var tid = parseInt(id);
$(".mchatrow" + id).show();
}
function mChatTimeHide(id){
var tid = parseInt(id);
$(".mchatrow" + id).hide();
var tid = parseInt(id);
$(".mchatrow" + id).hide();
}
// Apprise 1.5 by Daniel Raftery
@@ -7,18 +7,18 @@
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
Code uses the titlealert jQuery plugin, options are below
interva 500 The flashing interval in milliseconds.
interva 500 The flashing interval in milliseconds.
originalTitleInterval null Time in milliseconds that the original title is diplayed for. If null the time is the same as interval.
duration 0 The total lenght of the flashing before it is automatically stopped. Zero means infinite.
stopOnFocus true If true, the flashing will stop when the window gets focus.
stopOnMouseMove false If true, the flashing will stop when the document recieves a mousemove event (i.e. when the user moves the mouse over the document area, regardless of what window is active).
stopOnFocus true If true, the flashing will stop when the window gets focus.
stopOnMouseMove false If true, the flashing will stop when the document recieves a mousemove event (i.e. when the user moves the mouse over the document area, regardless of what window is active).
To use find titlealert in the code and make as so
$jQ.titleAlert(mChatNewMessageAlert, {
requireBlur:false,
stopOnFocus:false,
duration:4000,
interval:700
});
});
**/
var $jQ=jQuery;var hasFocus=true;$jQ(function(){if(!mChatArchiveMode){if(mChatPause){$jQ("#mChatMessage").bind("keypress",function(){clearInterval(interval);$jQ("#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG").hide();$jQ("#mChatRefreshText").html(mChatRefreshNo).addClass("mchat-alert");$jQ("#mChatPauseIMG").show()})}$jQ([window,document]).blur(function(){hasFocus=false}).focus(function(){hasFocus=true});$jQ.fn.autoGrowInput=function(e){var t=$jQ(".mChatPanel").width();e=$jQ.extend({maxWidth:t-20,minWidth:0,comfortZone:20},e);this.filter("input:text").each(function(){var t=e.minWidth||$jQ(this).width(),n="",r=$jQ(this),i=$jQ("<div/>").css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:r.css("fontSize"),fontFamily:r.css("fontFamily"),fontWeight:r.css("fontWeight"),letterSpacing:r.css("letterSpacing"),whiteSpace:"nowrap"}),s=function(){if(n===(n=r.val())){return}var s=n.replace(/&/g,"&").replace(/\s/g," ").replace(/</g,"&lt;").replace(/>/g,"&gt;");i.html(s);var u=i.width(),a=u+e.comfortZone>=t?u+e.comfortZone:t,f=r.width(),l=a<f&&a>=t||a>t&&a<e.maxWidth;if(l){r.width(a)}};i.insertAfter(r);$jQ(this).bind("keypress blur change submit focus",s)});return this};$jQ("input.mChatText").autoGrowInput();if(mChatSound&&$jQ.cookie("mChatNoSound")!="yes"){$jQ.cookie("mChatNoSound",null);$jQ("#mChatUseSound").attr("checked","checked")}else{$jQ.cookie("mChatNoSound","yes");$jQ("#mChatUseSound").removeAttr("checked")}if($jQ("#mChatUserList").length&&($jQ.cookie("mChatShowUserList")=="yes"||mChatCustomPage)){$jQ("#mChatUserList").show()}}$jQ.browser={};$jQ.browser.msie=false;if(navigator.userAgent.match(/MSIE ([0-9]+)\./)||navigator.userAgent.match(/Trident\/7.0; rv 11.0/)){$jQ.browser.msie=true}});var mChat={countDown:function(){if($jQ("#mChatSessMess").hasClass("mchat-alert")){$jQ("#mChatSessMess").removeClass("mchat-alert")}session_time=session_time-1;var e=Math.floor(session_time);var t=Math.floor(e/60);var n=Math.floor(t/60);e=e%60;if(e<=9){e="0"+e}t=t%60;if(t<=9){t="0"+t}n=n%60;if(n<=9){n="0"+n}var r=n+":"+t+":"+e;$jQ("#mChatSessMess").html(mChatSessEnds+" "+r);if(session_time<=0){clearInterval(counter);$jQ("#mChatSessMess").html(mChatSessOut).addClass("mchat-alert")}},clear:function(){if($jQ("#mChatMessage").val()==""){return false}var e=confirm(mChatReset);if(e){if($jQ("#mChatRefreshText").hasClass("mchat-alert")){$jQ("#mChatRefreshText").removeClass("mchat-alert")}if(mChatPause){interval=setInterval(function(){mChat.refresh()},mChatRefresh)}$jQ("#mChatOkIMG").show();$jQ("#mChatLoadIMG, #mChatErrorIMG, #mChatPauseIMG").hide();$jQ("#mChatRefreshText").html(mChatRefreshYes);$jQ("#mChatMessage").val("").focus()}else{$jQ("#mChatMessage").focus()}},sound:function(e){if($jQ.cookie("mChatNoSound")=="yes"){return}if($jQ.browser.msie){$jQ("#mChatSound").html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="0" width="0" type="application/x-shockwave-flash"><param name="movie" value="'+e+'"></object>')}else{$jQ("#mChatSound").html('<embed src="'+e+'" width="0" height="0" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>')}},notice:function(){if(!hasFocus){$jQ.titleAlert(mChatNewMessageAlert,{interval:1e3})}},toggle:function(e){$jQ("#mChat"+e).slideToggle("normal",function(){if($jQ("#mChat"+e).is(":visible")){$jQ.cookie("mChatShow"+e,"yes")}if($jQ("#mChat"+e).is(":hidden")){$jQ.cookie("mChatShow"+e,null)}})},add:function(){if($jQ("#mChatMessage").val()==""){return false}var e=$jQ("#mChatMessage").val().replace(/ /g,"");if(e.length>mChatMssgLngth&&mChatMssgLngth){alert(mChatMssgLngthLong);return}$jQ.ajax({url:mChatFile,timeout:1e4,type:"POST",data:$jQ("#postform").serialize(),async:true,dataType:"text",beforeSend:function(){$jQ("#submit_button").attr("disabled","disabled");if(mChatUserTimeout){clearInterval(activeinterval);clearInterval(counter)}clearInterval(interval)},success:function(){mChat.refresh()},error:function(e){if(e.status==400){alert(mChatFlood)}else if(e.status==403){alert(mChatNoAccess)}else if(e.status==501){alert(mChatNoMessageInput)}},complete:function(){if($jQ("#mChatData").children("#mChatNoMessage :last")){$jQ("#mChatNoMessage").remove()}$jQ("#submit_button").removeAttr("disabled");interval=setInterval(function(){mChat.refresh()},mChatRefresh);if(mChatUserTimeout){session_time=mChatUserTimeout?mChatUserTimeout/1e3:false;counter=setInterval(function(){mChat.countDown()},1e3);activeinterval=setInterval(function(){mChat.active()},mChatUserTimeout)}$jQ("#mChatMessage").val("").focus()}})},edit:function(id){var message=$jQ('#edit'+id).val();apprise(mChatEditInfo,{'textarea':message,'animate':true,'position':200,'confirm':true}, function(r){if(r){$jQ.ajax({url:mChatFile,timeout:10000,type:'POST',data:{mode:'edit',message_id:id,message:r},dataType:'text',beforeSend:function(){clearInterval(interval);if(mChatUserTimeout){clearInterval(actLine truncated
function mChatTimeShow(id){var tid = parseInt(id);$(".mchatrow" + id).show();}function mChatTimeHide(id){var tid = parseInt(id);$(".mchatrow" + id).hide();}
+33 -33
View File
@@ -5,7 +5,7 @@
<!-- INCLUDEJS editor.js -->
<!-- INCLUDEJS jquery.titlealert.min.js -->
<!-- INCLUDEJS jquery_cookie_mini.js -->
<!-- IF MCHAT_MESSAGE_TOP -->
<!-- IF MCHAT_MESSAGE_TOP -->
<!-- INCLUDEJS mchat_ajax_mini.js -->
<!-- ELSE -->
<!-- INCLUDEJS mchat_ajax_mini_top.js -->
@@ -100,42 +100,42 @@
<!-- ENDIF -->
function insert_quote(user,text)
{
var quote = decodeURIComponent(text.replace(/\+/g, " "));
quote = quote.replace(/&lt;/g, "<");
quote = quote.replace(/&gt;/g, ">");
quote = quote.replace(/&#58;/g, ':');
quote = quote.replace(/&#46;/g, '.');
quote = quote.replace(/&amp;/g, '&');
quote = quote.replace(/&quot;/g, '"');
var username = decodeURIComponent(user.replace(/\+/g, " "));
username = username.replace(/&lt;/g, "<");
username = username.replace(/&gt;/g, ">");
username = username.replace(/&#58;/g, ':');
username = username.replace(/&#46;/g, '.');
username = username.replace(/&amp;/g, '&');
username = username.replace(/&quot;/g, '"');
document.getElementById('mChatMessage').value += '[quote="' + username + '"]' + ' ' + quote + '[/quote]';
document.getElementById('mChatMessage').focus();
var quote = decodeURIComponent(text.replace(/\+/g, " "));
quote = quote.replace(/&lt;/g, "<");
quote = quote.replace(/&gt;/g, ">");
quote = quote.replace(/&#58;/g, ':');
quote = quote.replace(/&#46;/g, '.');
quote = quote.replace(/&amp;/g, '&');
quote = quote.replace(/&quot;/g, '"');
var username = decodeURIComponent(user.replace(/\+/g, " "));
username = username.replace(/&lt;/g, "<");
username = username.replace(/&gt;/g, ">");
username = username.replace(/&#58;/g, ':');
username = username.replace(/&#46;/g, '.');
username = username.replace(/&amp;/g, '&');
username = username.replace(/&quot;/g, '"');
document.getElementById('mChatMessage').value += '[quote="' + username + '"]' + ' ' + quote + '[/quote]';
document.getElementById('mChatMessage').focus();
}
function insert_like(user,text)
{
var quote = decodeURIComponent(text.replace(/\+/g, " "));
quote = quote.replace(/&lt;/g, "<");
quote = quote.replace(/&gt;/g, ">");
quote = quote.replace(/&#58;/g, ':');
quote = quote.replace(/&#46;/g, '.');
quote = quote.replace(/&amp;/g, '&');
quote = quote.replace(/&quot;/g, '"');
var username = decodeURIComponent(user.replace(/\+/g, " "));
username = username.replace(/&lt;/g, "<");
username = username.replace(/&gt;/g, ">");
username = username.replace(/&#58;/g, ':');
username = username.replace(/&#46;/g, '.');
username = username.replace(/&amp;/g, '&');
username = username.replace(/&quot;/g, '"');
document.getElementById('mChatMessage').value += '' + mChatLikes + '[quote="' + username + '"]' + ' ' + quote + '[/quote]';
document.getElementById('mChatMessage').focus();
var quote = decodeURIComponent(text.replace(/\+/g, " "));
quote = quote.replace(/&lt;/g, "<");
quote = quote.replace(/&gt;/g, ">");
quote = quote.replace(/&#58;/g, ':');
quote = quote.replace(/&#46;/g, '.');
quote = quote.replace(/&amp;/g, '&');
quote = quote.replace(/&quot;/g, '"');
var username = decodeURIComponent(user.replace(/\+/g, " "));
username = username.replace(/&lt;/g, "<");
username = username.replace(/&gt;/g, ">");
username = username.replace(/&#58;/g, ':');
username = username.replace(/&#46;/g, '.');
username = username.replace(/&amp;/g, '&');
username = username.replace(/&quot;/g, '"');
document.getElementById('mChatMessage').value += '' + mChatLikes + '[quote="' + username + '"]' + ' ' + quote + '[/quote]';
document.getElementById('mChatMessage').focus();
}
// ]]>
</script>
+1 -1
View File
@@ -17,6 +17,6 @@
<!-- END rule -->
<span class="corners-bottom"><span></span></span></div>
</div>
<a href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
<a href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
<!-- INCLUDE simple_footer.html -->
+1 -1
View File
@@ -13,7 +13,7 @@
<dt><label for="mchat_index">{L_DISPLAY_MCHAT}{L_COLON}</label></dt>
<dd>
<label><input type="radio" name="user_mchat_index" value="1"<!-- IF S_DISPLAY_MCHAT --> id="mchat_index" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
<label><input type="radio" name="user_mchat_index" value="0"<!-- IF not S_DISPLAY_MCHAT --> id="mchat_index" checked="checked"<!-- ENDIF --> /> {L_NO}</label>
<label><input type="radio" name="user_mchat_index" value="0"<!-- IF not S_DISPLAY_MCHAT --> id="mchat_index" checked="checked"<!-- ENDIF --> /> {L_NO}</label>
</dd>
</dl>
<!-- ENDIF -->