diff --git a/src/messenger/webim/js/source/common.js b/src/messenger/webim/js/source/common.js index 4e38bcc7..b155f22f 100755 --- a/src/messenger/webim/js/source/common.js +++ b/src/messenger/webim/js/source/common.js @@ -171,7 +171,7 @@ var Ajax = { }, getError: function(_response) { - return _response.statusText || "connection error N" + _response.status; + return _response.statusText || "connection error N" + _response.status; }, emptyFunction: function() {} @@ -274,9 +274,9 @@ Class.inherit( Ajax.Request, Ajax.Base, { }, handleTimeout: function() { - if(this.finished) { return; } - this.finished = true; - (this._options.onTimeout || Ajax.emptyFunction)(this); + if(this.finished) { return; } + this.finished = true; + (this._options.onTimeout || Ajax.emptyFunction)(this); }, respondToReadyState: function(readystate) { @@ -285,9 +285,9 @@ Class.inherit( Ajax.Request, Ajax.Base, { if (event == 'Complete') { try { if(!this.finished) { - this.finished = true; - if(this._options.timeout) { clearTimeout(this.transportTimer); } - (this._options.onComplete || Ajax.emptyFunction)(this.transport); + this.finished = true; + if(this._options.timeout) { clearTimeout(this.transportTimer); } + (this._options.onComplete || Ajax.emptyFunction)(this.transport); } } catch (e) { this.dispatchException(e); @@ -468,41 +468,41 @@ var NodeUtils = { var CommonUtils = { getRow: function(_id,_table) { - var _row = _table.rows[_id]; - if( _row != null ) - return _row; - if( _table.rows['head'] != null ) - return null; + var _row = _table.rows[_id]; + if( _row != null ) + return _row; + if( _table.rows['head'] != null ) + return null; - for( k=0; k < _table.rows.length; k++ ) { - if( _table.rows[k].id == _id ) - return _table.rows[k]; - } - return null; + for( k=0; k < _table.rows.length; k++ ) { + if( _table.rows[k].id == _id ) + return _table.rows[k]; + } + return null; }, getCell: function(_id,_row,_table) { - var _cell = _row.cells[_id]; - if( _cell != null ) - return _cell; - if( _table.rows['head'] != null ) - return null; - for( k=0; k < _row.cells.length; k++ ) { - if( _row.cells[k].id == _id ) - return _row.cells[k]; - } - return null; + var _cell = _row.cells[_id]; + if( _cell != null ) + return _cell; + if( _table.rows['head'] != null ) + return null; + for( k=0; k < _row.cells.length; k++ ) { + if( _row.cells[k].id == _id ) + return _row.cells[k]; + } + return null; }, insertCell: function(_row,_id,_className,_align,_height, _inner) { - var cell = _row.insertCell(-1); - cell.id = _id; - if(_align) - cell.align = _align; - cell.className = _className; - if(_height) - cell.height = _height; - cell.innerHTML = _inner; + var cell = _row.insertCell(-1); + cell.id = _id; + if(_align) + cell.align = _align; + cell.className = _className; + if(_height) + cell.height = _height; + cell.innerHTML = _inner; } }; @@ -510,7 +510,7 @@ function playSound(wav_file) { var player = document.createElement("div"); var agt = navigator.userAgent.toLowerCase(); if(agt.indexOf('opera') != -1) { - player.style = "position: absolute; left: 0px; top: -200px;"; + player.style = "position: absolute; left: 0px; top: -200px;"; } document.body.appendChild(player); player.innerHTML = ''; diff --git a/src/messenger/webim/js/source/users.js b/src/messenger/webim/js/source/users.js index 65ddf6ba..fdcf9db3 100644 --- a/src/messenger/webim/js/source/users.js +++ b/src/messenger/webim/js/source/users.js @@ -35,19 +35,19 @@ Class.inherit( Ajax.PeriodicalUpdater, Ajax.Base, { }, stopUpdate: function() { - if( this.updater._options ) + if( this.updater._options ) this.updater._options.onComplete = undefined; clearTimeout(this.timer); }, update: function() { if( this._options.updateParams ) - this._options.parameters = (this._options.updateParams)(); + this._options.parameters = (this._options.updateParams)(); this.updater = new Ajax.Request(this._options.url, this._options); }, requestComplete: function(presponse) { - try { + try { var xmlRoot = Ajax.getXml(presponse); if( xmlRoot ) { (this._options.updateContent || Ajax.emptyFunction)( xmlRoot ); @@ -64,9 +64,9 @@ Class.inherit( Ajax.PeriodicalUpdater, Ajax.Base, { var HtmlGenerationUtils = { popupLink: function(link, title, wndid, inner, width, height,linkclass) { - return ''+ - inner+''; + return ''+ + inner+''; }, generateOneRowTable: function(content) { @@ -74,10 +74,10 @@ var HtmlGenerationUtils = { }, viewOpenCell: function(username,servlet,id,canview,canopen,ban,message,cantakenow) { - var cellsCount = 2; - var link = servlet+"?thread="+id; - var gen = ''; - if(canopen || canview ) { + var cellsCount = 2; + var link = servlet+"?thread="+id; + var gen = ''; + if(canopen || canview ) { gen += HtmlGenerationUtils.popupLink( (cantakenow||!canview) ? link : link+"&viewonly=true", localized[canopen ? 0 : 1], "ImCenter"+id, username, 640, 480, null); } else { gen += '' + username + ''; @@ -100,7 +100,7 @@ var HtmlGenerationUtils = { gen += message.length > 30 ? message.substring(0,30) + '...' : message; gen += ''; } - return HtmlGenerationUtils.generateOneRowTable(gen); + return HtmlGenerationUtils.generateOneRowTable(gen); }, banCell: function(id,banid){ return ''+ @@ -125,11 +125,11 @@ Class.inherit( Ajax.ThreadListUpdater, Ajax.Base, { }, updateParams: function() { - return "since=" + this._options.lastrevision + "&status=" + this._options.istatus + (this._options.showonline ? "&showonline=1" : ""); + return "since=" + this._options.lastrevision + "&status=" + this._options.istatus + (this._options.showonline ? "&showonline=1" : ""); }, setStatus: function(msg) { - this._options.status.innerHTML = msg; + this._options.status.innerHTML = msg; }, handleError: function(s) { @@ -236,7 +236,7 @@ Class.inherit( Ajax.ThreadListUpdater, Ajax.Base, { return false; } return startRow.rowIndex+1 < endRow.rowIndex; - } + } var _status = $("statustd"); if( _status) { var notempty = queueNotEmpty(this.t, "twait") || queueNotEmpty(this.t, "tprio") || queueNotEmpty(this.t, "tchat"); @@ -308,11 +308,11 @@ Class.inherit( Ajax.ThreadListUpdater, Ajax.Base, { } } }, - + updateOperators: function(root) { - var div = $('onlineoperators'); - if (!div) - return; + var div = $('onlineoperators'); + if (!div) + return; var names = []; @@ -380,5 +380,5 @@ EventHelper.register(window, 'onload', function(){ new Ajax.ThreadListUpdater(({table:$("threadlist"),status:$("connstatus"),istatus:0}).extend(updaterOptions || {})); if(!updaterOptions.havemenu) { togglemenu(); - } + } }); diff --git a/src/messenger/webim/view/install_err.php b/src/messenger/webim/view/install_err.php index a9e4e7d9..e3562069 100644 --- a/src/messenger/webim/view/install_err.php +++ b/src/messenger/webim/view/install_err.php @@ -22,12 +22,12 @@ $page['fixedwrap'] = true; function tpl_content() { global $page, $webimroot, $errors; ?> - -
- @@ -70,7 +70,7 @@ require_once('inc_errors.php'); - - -