[MIRROR] Adds spaces around logical operators [MDB IGNORE] (#18776)

* Adds spaces around logical operators

* Update code/modules/admin/verbs/admingame.dm

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-01-21 22:16:43 -08:00
committed by GitHub
co-authored by Jeremiah Tom
parent b2e7e489cb
commit c5ca08fd01
117 changed files with 192 additions and 192 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ function replaceContent() {
}
}
var parent = document.getElementById(id);
if(typeof(parent)!=='undefined' && parent!=null){
if(typeof(parent) !== 'undefined' && parent != null){
parent.innerHTML = content?content:'';
}
if(callback && window\[callback\]){
+4 -4
View File
@@ -4,21 +4,21 @@ function dropdowns() {
var headers = new Array();
var links = new Array();
for(var i=0;i<divs.length;i++){
if(divs\[i\].className=='header') {
if(divs\[i\].className == 'header') {
divs\[i\].className='header closed';
divs\[i\].innerHTML = divs\[i\].innerHTML+' +';
headers.push(divs\[i\]);
}
if(divs\[i\].className=='links') {
if(divs\[i\].className == 'links') {
divs\[i\].className='links hidden';
links.push(divs\[i\]);
}
}
for(var i=0;i<headers.length;i++){
if(typeof(links\[i\])!== 'undefined' && links\[i\]!=null) {
if(typeof(links\[i\]) !== 'undefined' && links\[i\] != null) {
headers\[i\].onclick = (function(elem) {
return function() {
if(elem.className.search('visible')>=0) {
if(elem.className.search('visible') >= 0) {
elem.className = elem.className.replace('visible','hidden');
this.className = this.className.replace('open','closed');
this.innerHTML = this.innerHTML.replace('-','+');