From 3aa0f022d5ca58440e913cb43dadc0aa88f8296c Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Mon, 24 Mar 2014 23:15:45 +0400 Subject: [PATCH] Update version --- src/mibew/VERSION | 2 +- src/mibew/js/{169 => 1610}/brws.js | 0 src/mibew/js/{169 => 1610}/chat.js | 2 +- src/mibew/js/{169 => 1610}/common.js | 0 src/mibew/js/{169 => 1610}/ie.js | 0 src/mibew/js/{169 => 1610}/locale.js | 0 src/mibew/js/{169 => 1610}/soundcheck.js | 0 src/mibew/js/{169 => 1610}/update.js | 0 src/mibew/js/{169 => 1610}/users.js | 2 +- src/mibew/js/source/build.xml | 2 +- src/mibew/libs/common.php | 4 ++-- src/pack.pl | 2 +- 12 files changed, 7 insertions(+), 7 deletions(-) rename src/mibew/js/{169 => 1610}/brws.js (100%) rename src/mibew/js/{169 => 1610}/chat.js (96%) rename src/mibew/js/{169 => 1610}/common.js (100%) rename src/mibew/js/{169 => 1610}/ie.js (100%) rename src/mibew/js/{169 => 1610}/locale.js (100%) rename src/mibew/js/{169 => 1610}/soundcheck.js (100%) rename src/mibew/js/{169 => 1610}/update.js (100%) rename src/mibew/js/{169 => 1610}/users.js (94%) diff --git a/src/mibew/VERSION b/src/mibew/VERSION index 0a9232ad..5cbb67c1 100644 --- a/src/mibew/VERSION +++ b/src/mibew/VERSION @@ -1 +1 @@ -Mibew/1.6.9 \ No newline at end of file +Mibew/1.6.10 \ No newline at end of file diff --git a/src/mibew/js/169/brws.js b/src/mibew/js/1610/brws.js similarity index 100% rename from src/mibew/js/169/brws.js rename to src/mibew/js/1610/brws.js diff --git a/src/mibew/js/169/chat.js b/src/mibew/js/1610/chat.js similarity index 96% rename from src/mibew/js/169/chat.js rename to src/mibew/js/1610/chat.js index 29e8f074..b643155b 100644 --- a/src/mibew/js/169/chat.js +++ b/src/mibew/js/1610/chat.js @@ -10,7 +10,7 @@ b.write("");b.close();a.onload=function(){a.myHtml&&(FrameUtils.ge b.scrollIntoView(!1)}};Ajax.ChatThreadUpdater=Class.create(); Class.inherit(Ajax.ChatThreadUpdater,Ajax.Base,{initialize:function(a){this.setOptions(a);this._options.onComplete=this.requestComplete.bind(this);this._options.onException=this.handleException.bind(this);this._options.onTimeout=this.handleTimeout.bind(this);this._options.timeout=5E3;this.updater={};this.frequency=this._options.frequency||2;this.lastupdate=0;this.focused=this.skipNextsound=this.cansend=!0;this.ownThread=null!=this._options.message;FrameUtils.initFrame(this._options.container);this._options.message&& (this._options.message.onkeydown=this.handleKeyDown.bind(this),this._options.message.onfocus=function(){this.focused=!0}.bind(this),this._options.message.onblur=function(){this.focused=!1}.bind(this));this.update()},handleException:function(a,b){this.setStatus("offline, reconnecting");this.stopUpdate();this.timer=setTimeout(this.update.bind(this),1E3)},handleTimeout:function(a){this.setStatus("timeout, reconnecting");this.stopUpdate();this.timer=setTimeout(this.update.bind(this),1E3)},updateOptions:function(a){this._options.parameters= -"act="+a+"&thread="+(this._options.threadid||0)+"&token="+(this._options.token||0)+"&lastid="+(this._options.lastid||0);this._options.user&&(this._options.parameters+="&user=true");"refresh"==a&&(this._options.message&&""!=this._options.message.value)&&(this._options.parameters+="&typed=1")},enableInput:function(a){this._options.message&&(this._options.message.disabled=!a)},stopUpdate:function(){this.enableInput(!0);this.updater._options&&(this.updater._options.onComplete=void 0);clearTimeout(this.timer)}, +"act="+a+"&thread="+(this._options.threadid||0)+"&token="+(this._options.token||0)+"&lastid="+(this._options.lastid||0);this._options.user&&(this._options.parameters+="&user=true");"refresh"==a&&this._options.message&&""!=this._options.message.value&&(this._options.parameters+="&typed=1")},enableInput:function(a){this._options.message&&(this._options.message.disabled=!a)},stopUpdate:function(){this.enableInput(!0);this.updater._options&&(this.updater._options.onComplete=void 0);clearTimeout(this.timer)}, update:function(){this.updateOptions("refresh");this.updater=new Ajax.Request(this._options.servl,this._options)},requestComplete:function(a){try{this.enableInput(!0);this.cansend=!0;var b=Ajax.getXml(a);b&&"thread"==b.tagName?this.updateContent(b):this.handleError(a,b,"refresh messages failed")}catch(c){}this.skipNextsound=!1;this.timer=setTimeout(this.update.bind(this),1E3*this.frequency)},postMessage:function(a){if(""!=a&&this.cansend){this.cansend=!1;this.stopUpdate();this.skipNextsound=!0;this.updateOptions("post"); var b={}.extend(this._options);b.parameters+="&message="+encodeURIComponent(a);b.onComplete=function(a){this.requestComplete(a);this._options.message&&(this._options.message.value="",this._options.message.focus())}.bind(this);"opera"!=myRealAgent&&this.enableInput(!1);this.updater=new Ajax.Request(this._options.servl,b)}},changeName:function(a){this.skipNextsound=!0;new Ajax.Request(this._options.servl,{parameters:"act=rename&thread="+(this._options.threadid||0)+"&token="+(this._options.token||0)+ "&name="+encodeURIComponent(a)})},onThreadClosed:function(a){var b=Ajax.getXml(a);b&&"closed"==b.tagName?setTimeout("window.close()",2E3):this.handleError(a,b,"cannot close")},closeThread:function(){var a="act=close&thread="+(this._options.threadid||0)+"&token="+(this._options.token||0);this._options.user&&(a+="&user=true");new Ajax.Request(this._options.servl,{parameters:a,onComplete:this.onThreadClosed.bind(this)})},processMessage:function(a,b){var c=NodeUtils.getNodeText(b);FrameUtils.insertIntoFrame(a, diff --git a/src/mibew/js/169/common.js b/src/mibew/js/1610/common.js similarity index 100% rename from src/mibew/js/169/common.js rename to src/mibew/js/1610/common.js diff --git a/src/mibew/js/169/ie.js b/src/mibew/js/1610/ie.js similarity index 100% rename from src/mibew/js/169/ie.js rename to src/mibew/js/1610/ie.js diff --git a/src/mibew/js/169/locale.js b/src/mibew/js/1610/locale.js similarity index 100% rename from src/mibew/js/169/locale.js rename to src/mibew/js/1610/locale.js diff --git a/src/mibew/js/169/soundcheck.js b/src/mibew/js/1610/soundcheck.js similarity index 100% rename from src/mibew/js/169/soundcheck.js rename to src/mibew/js/1610/soundcheck.js diff --git a/src/mibew/js/169/update.js b/src/mibew/js/1610/update.js similarity index 100% rename from src/mibew/js/169/update.js rename to src/mibew/js/1610/update.js diff --git a/src/mibew/js/169/users.js b/src/mibew/js/1610/users.js similarity index 94% rename from src/mibew/js/169/users.js rename to src/mibew/js/1610/users.js index 690de862..4461c24c 100644 --- a/src/mibew/js/169/users.js +++ b/src/mibew/js/1610/users.js @@ -23,5 +23,5 @@ this._options.agentservl,c,m,l,f,w,"chat"!=d)),CommonUtils.insertCell(g,"contid" e=CommonUtils.getCell("time",c,this.t);e&&(e.innerHTML=d);b="chat"!=b[2]?this.getTimeSince(b[1]):"-";if(c=CommonUtils.getCell("wait",c,this.t))c.innerHTML=b}}},updateThreads:function(a){var b=!1,c=NodeUtils.getAttrValue(a,"time"),d=NodeUtils.getAttrValue(a,"revision");c&&(this.delta=(new Date).getTime()-c);d&&(this._options.lastrevision=d);for(c=0;c '+m}}b.innerHTML= c.join(", ")}},updateContent:function(a){if("update"==a.tagName)for(var b=0;b - + diff --git a/src/mibew/libs/common.php b/src/mibew/libs/common.php index e7b2fa0a..fe8fa3be 100644 --- a/src/mibew/libs/common.php +++ b/src/mibew/libs/common.php @@ -35,8 +35,8 @@ $home_locale = locale_pattern_check($home_locale) && locale_exists($home_locale) $locale_cookie_name = 'mibew_locale'; -$version = '1.6.9'; -$jsver = "169"; +$version = '1.6.10'; +$jsver = "1610"; // Make session cookie more secure @ini_set('session.cookie_httponly', TRUE); diff --git a/src/pack.pl b/src/pack.pl index d4dbe27f..9a52a982 100755 --- a/src/pack.pl +++ b/src/pack.pl @@ -5,7 +5,7 @@ ################################################################## $targetFolder = "deploy"; -$suffix = "169"; +$suffix = "1610"; ################################################################## # Copies tree into target folder, preprocess .phps