mirror of
https://github.com/Mibew/i18n.git
synced 2025-02-02 09:34:41 +03:00
Remove redundant whitespaces
This commit is contained in:
parent
0f86f558ec
commit
441e88dfa9
@ -171,7 +171,7 @@ var Ajax = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getError: function(_response) {
|
getError: function(_response) {
|
||||||
return _response.statusText || "connection error N" + _response.status;
|
return _response.statusText || "connection error N" + _response.status;
|
||||||
},
|
},
|
||||||
|
|
||||||
emptyFunction: function() {}
|
emptyFunction: function() {}
|
||||||
@ -274,9 +274,9 @@ Class.inherit( Ajax.Request, Ajax.Base, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleTimeout: function() {
|
handleTimeout: function() {
|
||||||
if(this.finished) { return; }
|
if(this.finished) { return; }
|
||||||
this.finished = true;
|
this.finished = true;
|
||||||
(this._options.onTimeout || Ajax.emptyFunction)(this);
|
(this._options.onTimeout || Ajax.emptyFunction)(this);
|
||||||
},
|
},
|
||||||
|
|
||||||
respondToReadyState: function(readystate) {
|
respondToReadyState: function(readystate) {
|
||||||
@ -285,9 +285,9 @@ Class.inherit( Ajax.Request, Ajax.Base, {
|
|||||||
if (event == 'Complete') {
|
if (event == 'Complete') {
|
||||||
try {
|
try {
|
||||||
if(!this.finished) {
|
if(!this.finished) {
|
||||||
this.finished = true;
|
this.finished = true;
|
||||||
if(this._options.timeout) { clearTimeout(this.transportTimer); }
|
if(this._options.timeout) { clearTimeout(this.transportTimer); }
|
||||||
(this._options.onComplete || Ajax.emptyFunction)(this.transport);
|
(this._options.onComplete || Ajax.emptyFunction)(this.transport);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.dispatchException(e);
|
this.dispatchException(e);
|
||||||
@ -468,41 +468,41 @@ var NodeUtils = {
|
|||||||
|
|
||||||
var CommonUtils = {
|
var CommonUtils = {
|
||||||
getRow: function(_id,_table) {
|
getRow: function(_id,_table) {
|
||||||
var _row = _table.rows[_id];
|
var _row = _table.rows[_id];
|
||||||
if( _row != null )
|
if( _row != null )
|
||||||
return _row;
|
return _row;
|
||||||
if( _table.rows['head'] != null )
|
if( _table.rows['head'] != null )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
for( k=0; k < _table.rows.length; k++ ) {
|
for( k=0; k < _table.rows.length; k++ ) {
|
||||||
if( _table.rows[k].id == _id )
|
if( _table.rows[k].id == _id )
|
||||||
return _table.rows[k];
|
return _table.rows[k];
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
||||||
getCell: function(_id,_row,_table) {
|
getCell: function(_id,_row,_table) {
|
||||||
var _cell = _row.cells[_id];
|
var _cell = _row.cells[_id];
|
||||||
if( _cell != null )
|
if( _cell != null )
|
||||||
return _cell;
|
return _cell;
|
||||||
if( _table.rows['head'] != null )
|
if( _table.rows['head'] != null )
|
||||||
return null;
|
return null;
|
||||||
for( k=0; k < _row.cells.length; k++ ) {
|
for( k=0; k < _row.cells.length; k++ ) {
|
||||||
if( _row.cells[k].id == _id )
|
if( _row.cells[k].id == _id )
|
||||||
return _row.cells[k];
|
return _row.cells[k];
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
||||||
insertCell: function(_row,_id,_className,_align,_height, _inner) {
|
insertCell: function(_row,_id,_className,_align,_height, _inner) {
|
||||||
var cell = _row.insertCell(-1);
|
var cell = _row.insertCell(-1);
|
||||||
cell.id = _id;
|
cell.id = _id;
|
||||||
if(_align)
|
if(_align)
|
||||||
cell.align = _align;
|
cell.align = _align;
|
||||||
cell.className = _className;
|
cell.className = _className;
|
||||||
if(_height)
|
if(_height)
|
||||||
cell.height = _height;
|
cell.height = _height;
|
||||||
cell.innerHTML = _inner;
|
cell.innerHTML = _inner;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -510,7 +510,7 @@ function playSound(wav_file) {
|
|||||||
var player = document.createElement("div");
|
var player = document.createElement("div");
|
||||||
var agt = navigator.userAgent.toLowerCase();
|
var agt = navigator.userAgent.toLowerCase();
|
||||||
if(agt.indexOf('opera') != -1) {
|
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);
|
document.body.appendChild(player);
|
||||||
player.innerHTML = '<audio autoplay src="'+wav_file+'"><embed src="'+wav_file+'" hidden="true" autostart="true" loop="false"></audio>';
|
player.innerHTML = '<audio autoplay src="'+wav_file+'"><embed src="'+wav_file+'" hidden="true" autostart="true" loop="false"></audio>';
|
||||||
|
@ -35,19 +35,19 @@ Class.inherit( Ajax.PeriodicalUpdater, Ajax.Base, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
stopUpdate: function() {
|
stopUpdate: function() {
|
||||||
if( this.updater._options )
|
if( this.updater._options )
|
||||||
this.updater._options.onComplete = undefined;
|
this.updater._options.onComplete = undefined;
|
||||||
clearTimeout(this.timer);
|
clearTimeout(this.timer);
|
||||||
},
|
},
|
||||||
|
|
||||||
update: function() {
|
update: function() {
|
||||||
if( this._options.updateParams )
|
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);
|
this.updater = new Ajax.Request(this._options.url, this._options);
|
||||||
},
|
},
|
||||||
|
|
||||||
requestComplete: function(presponse) {
|
requestComplete: function(presponse) {
|
||||||
try {
|
try {
|
||||||
var xmlRoot = Ajax.getXml(presponse);
|
var xmlRoot = Ajax.getXml(presponse);
|
||||||
if( xmlRoot ) {
|
if( xmlRoot ) {
|
||||||
(this._options.updateContent || Ajax.emptyFunction)( xmlRoot );
|
(this._options.updateContent || Ajax.emptyFunction)( xmlRoot );
|
||||||
@ -64,9 +64,9 @@ Class.inherit( Ajax.PeriodicalUpdater, Ajax.Base, {
|
|||||||
var HtmlGenerationUtils = {
|
var HtmlGenerationUtils = {
|
||||||
|
|
||||||
popupLink: function(link, title, wndid, inner, width, height,linkclass) {
|
popupLink: function(link, title, wndid, inner, width, height,linkclass) {
|
||||||
return '<a href="'+link+'"'+(linkclass != null ? ' class="'+linkclass+'"' : '')+' target="_blank" title="'+title+'" onclick="this.newWindow = window.open(\''+link+'\', \''+
|
return '<a href="'+link+'"'+(linkclass != null ? ' class="'+linkclass+'"' : '')+' target="_blank" title="'+title+'" onclick="this.newWindow = window.open(\''+link+'\', \''+
|
||||||
wndid+'\', \'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width='+width+',height='+height+',resizable=1\');this.newWindow.focus();this.newWindow.opener=window;return false;">'+
|
wndid+'\', \'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width='+width+',height='+height+',resizable=1\');this.newWindow.focus();this.newWindow.opener=window;return false;">'+
|
||||||
inner+'</a>';
|
inner+'</a>';
|
||||||
},
|
},
|
||||||
|
|
||||||
generateOneRowTable: function(content) {
|
generateOneRowTable: function(content) {
|
||||||
@ -74,10 +74,10 @@ var HtmlGenerationUtils = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
viewOpenCell: function(username,servlet,id,canview,canopen,ban,message,cantakenow) {
|
viewOpenCell: function(username,servlet,id,canview,canopen,ban,message,cantakenow) {
|
||||||
var cellsCount = 2;
|
var cellsCount = 2;
|
||||||
var link = servlet+"?thread="+id;
|
var link = servlet+"?thread="+id;
|
||||||
var gen = '<td>';
|
var gen = '<td>';
|
||||||
if(canopen || canview ) {
|
if(canopen || canview ) {
|
||||||
gen += HtmlGenerationUtils.popupLink( (cantakenow||!canview) ? link : link+"&viewonly=true", localized[canopen ? 0 : 1], "ImCenter"+id, username, 640, 480, null);
|
gen += HtmlGenerationUtils.popupLink( (cantakenow||!canview) ? link : link+"&viewonly=true", localized[canopen ? 0 : 1], "ImCenter"+id, username, 640, 480, null);
|
||||||
} else {
|
} else {
|
||||||
gen += '<a href="#">' + username + '</a>';
|
gen += '<a href="#">' + username + '</a>';
|
||||||
@ -100,7 +100,7 @@ var HtmlGenerationUtils = {
|
|||||||
gen += message.length > 30 ? message.substring(0,30) + '...' : message;
|
gen += message.length > 30 ? message.substring(0,30) + '...' : message;
|
||||||
gen += '</a></td>';
|
gen += '</a></td>';
|
||||||
}
|
}
|
||||||
return HtmlGenerationUtils.generateOneRowTable(gen);
|
return HtmlGenerationUtils.generateOneRowTable(gen);
|
||||||
},
|
},
|
||||||
banCell: function(id,banid){
|
banCell: function(id,banid){
|
||||||
return '<td class="icon">'+
|
return '<td class="icon">'+
|
||||||
@ -125,11 +125,11 @@ Class.inherit( Ajax.ThreadListUpdater, Ajax.Base, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
updateParams: function() {
|
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) {
|
setStatus: function(msg) {
|
||||||
this._options.status.innerHTML = msg;
|
this._options.status.innerHTML = msg;
|
||||||
},
|
},
|
||||||
|
|
||||||
handleError: function(s) {
|
handleError: function(s) {
|
||||||
@ -236,7 +236,7 @@ Class.inherit( Ajax.ThreadListUpdater, Ajax.Base, {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return startRow.rowIndex+1 < endRow.rowIndex;
|
return startRow.rowIndex+1 < endRow.rowIndex;
|
||||||
}
|
}
|
||||||
var _status = $("statustd");
|
var _status = $("statustd");
|
||||||
if( _status) {
|
if( _status) {
|
||||||
var notempty = queueNotEmpty(this.t, "twait") || queueNotEmpty(this.t, "tprio") || queueNotEmpty(this.t, "tchat");
|
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) {
|
updateOperators: function(root) {
|
||||||
var div = $('onlineoperators');
|
var div = $('onlineoperators');
|
||||||
if (!div)
|
if (!div)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var names = [];
|
var names = [];
|
||||||
|
|
||||||
@ -380,5 +380,5 @@ EventHelper.register(window, 'onload', function(){
|
|||||||
new Ajax.ThreadListUpdater(({table:$("threadlist"),status:$("connstatus"),istatus:0}).extend(updaterOptions || {}));
|
new Ajax.ThreadListUpdater(({table:$("threadlist"),status:$("connstatus"),istatus:0}).extend(updaterOptions || {}));
|
||||||
if(!updaterOptions.havemenu) {
|
if(!updaterOptions.havemenu) {
|
||||||
togglemenu();
|
togglemenu();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -22,12 +22,12 @@ $page['fixedwrap'] = true;
|
|||||||
function tpl_content() { global $page, $webimroot, $errors;
|
function tpl_content() { global $page, $webimroot, $errors;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once('inc_errors.php');
|
require_once('inc_errors.php');
|
||||||
?>
|
?>
|
||||||
<?php echo getlocal("install.err.back") ?>
|
<?php echo getlocal("install.err.back") ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} /* content */
|
} /* content */
|
||||||
|
|
||||||
require_once('../view/inc_main.php');
|
require_once('../view/inc_main.php');
|
||||||
|
@ -39,7 +39,7 @@ function tpl_content() { global $page, $webimroot, $errors;
|
|||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once('inc_errors.php');
|
require_once('inc_errors.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ require_once('inc_errors.php');
|
|||||||
<a href="<?php echo $webimroot ?>/license.php"><?php echo getlocal("install.license") ?></a>
|
<a href="<?php echo $webimroot ?>/license.php"><?php echo getlocal("install.license") ?></a>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} /* content */
|
} /* content */
|
||||||
|
|
||||||
require_once('../view/inc_main.php');
|
require_once('../view/inc_main.php');
|
||||||
|
@ -40,7 +40,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.</p>
|
limitations under the License.</p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} /* content */
|
} /* content */
|
||||||
|
|
||||||
require_once('inc_main.php');
|
require_once('inc_main.php');
|
||||||
|
@ -97,7 +97,7 @@ $chatthread = $page['thread'];
|
|||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} /* content */
|
} /* content */
|
||||||
|
|
||||||
require_once('inc_main.php');
|
require_once('inc_main.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user