mirror of
				https://github.com/Mibew/i18n.git
				synced 2025-11-01 01:36:57 +03:00 
			
		
		
		
	Remove redundant whitespaces
This commit is contained in:
		
							parent
							
								
									0f86f558ec
								
							
						
					
					
						commit
						441e88dfa9
					
				| @ -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 = '<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() { | ||||
|   	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 '<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;">'+ | ||||
|   			inner+'</a>'; | ||||
| 	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;">'+ | ||||
| 			inner+'</a>'; | ||||
|   }, | ||||
| 
 | ||||
|   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 = '<td>'; | ||||
|  		if(canopen || canview ) { | ||||
| 		var cellsCount = 2; | ||||
| 		var link = servlet+"?thread="+id; | ||||
| 		var gen = '<td>'; | ||||
| 		if(canopen || canview ) { | ||||
| 			gen += HtmlGenerationUtils.popupLink( (cantakenow||!canview) ? link : link+"&viewonly=true", localized[canopen ? 0 : 1], "ImCenter"+id, username, 640, 480, null); | ||||
| 		} else { | ||||
| 			gen += '<a href="#">' + username + '</a>'; | ||||
| @ -100,7 +100,7 @@ var HtmlGenerationUtils = { | ||||
| 			gen += message.length > 30 ? message.substring(0,30) + '...' : message; | ||||
| 			gen += '</a></td>'; | ||||
| 		} | ||||
|   		return HtmlGenerationUtils.generateOneRowTable(gen); | ||||
| 		return HtmlGenerationUtils.generateOneRowTable(gen); | ||||
|   }, | ||||
|   banCell: function(id,banid){ | ||||
|       return '<td class="icon">'+ | ||||
| @ -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(); | ||||
|   }	  | ||||
|   } | ||||
| }); | ||||
|  | ||||
| @ -22,12 +22,12 @@ $page['fixedwrap'] = true; | ||||
| function tpl_content() { global $page, $webimroot, $errors; | ||||
| ?>
 | ||||
| 
 | ||||
| <?php  | ||||
| <?php | ||||
| require_once('inc_errors.php'); | ||||
| ?>
 | ||||
| <?php echo getlocal("install.err.back") ?>
 | ||||
| 
 | ||||
| <?php  | ||||
| <?php | ||||
| } /* content */ | ||||
| 
 | ||||
| require_once('../view/inc_main.php'); | ||||
|  | ||||
| @ -39,7 +39,7 @@ function tpl_content() { global $page, $webimroot, $errors; | ||||
| <br/> | ||||
| <br/> | ||||
| 
 | ||||
| <?php  | ||||
| <?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>
 | ||||
| 
 | ||||
| 
 | ||||
| <?php  | ||||
| <?php | ||||
| } /* content */ | ||||
| 
 | ||||
| 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 | ||||
| limitations under the License.</p> | ||||
| 
 | ||||
| <?php  | ||||
| <?php | ||||
| } /* content */ | ||||
| 
 | ||||
| require_once('inc_main.php'); | ||||
|  | ||||
| @ -97,7 +97,7 @@ $chatthread = $page['thread']; | ||||
| <br /> | ||||
| 
 | ||||
| 
 | ||||
| <?php  | ||||
| <?php | ||||
| } /* content */ | ||||
| 
 | ||||
| require_once('inc_main.php'); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user