Skip to content

Commit

Permalink
cleaning the javascript files.
Browse files Browse the repository at this point in the history
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
  • Loading branch information
eurich committed Jun 1, 2013
1 parent 75aad77 commit 4e9ebad
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions themes/default/scripts/PersonalMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function addCriteriaOption()
if (document.forms.addrule.elements[i].id.substr(0, 8) == "ruletype")
criteriaNum++;
}
criteriaNum++
criteriaNum++;

// group selections
var group_option = '';
Expand All @@ -284,12 +284,12 @@ function addActionOption()
if (document.forms.addrule.elements[i].id.substr(0, 7) == "acttype")
actionNum++;
}
actionNum++
actionNum++;

// Label selections
var label_option = '';
for (var index in labels)
label_option += '<option value="' + index + '">' + labels[index] + '</option>';

setOuterHTML(document.getElementById("actionAddHere"), '<br /><select name="acttype[' + actionNum + ']" id="acttype' + actionNum + '" onchange="updateActionDef(' + actionNum + ');rebuildRuleDesc();"><option value="">' + txt_pm_rule_sel_action + ':</option><option value="lab">'+ txt_pm_rule_label + '</option><option value="del">' + txt_pm_rule_delete + '</option></select>&nbsp;<span id="labdiv' + actionNum + '" style="display: none;"><select name="labdef[' + actionNum + ']" id="labdef' + actionNum + '" onchange="rebuildRuleDesc();"><option value="">' + txt_pm_rule_sel_label + '</option>' + label_option + '</select></span><span id="actionAddHere"></span>');
}
}
2 changes: 1 addition & 1 deletion themes/default/scripts/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ function testFTP()
2: "ftp_username",
3: "ftp_password",
4: "ftp_path"
}
};

var sPostData = "";
for (i = 0; i < 5; i++)
Expand Down
6 changes: 3 additions & 3 deletions themes/default/scripts/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ function addPollOption()
pollTabIndex = document.forms[form_name].elements[i].tabIndex;
}
}
pollOptionNum++
pollOptionId++
pollTabIndex++
pollOptionNum++;
pollOptionId++;
pollTabIndex++;
setOuterHTML(document.getElementById('pollMoreOptions'), '<li><label for="options-' + pollOptionId + '">' + txt_option + ' ' + pollOptionNum + '</label>: <input type="text" name="options[' + pollOptionId + ']" id="options-' + pollOptionId + '" value="" size="80" maxlength="255" tabindex="' + pollTabIndex + '" class="input_text" /></li><li id="pollMoreOptions"></li>');
}

Expand Down
6 changes: 3 additions & 3 deletions themes/default/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ String.prototype.php_to8bit = function ()
{
n = this.charCodeAt(i);
if (n < 128)
sReturn += String.fromCharCode(n)
sReturn += String.fromCharCode(n);
else if (n < 2048)
sReturn += String.fromCharCode(192 | n >> 6) + String.fromCharCode(128 | n & 63);
else if (n < 65536)
Expand Down Expand Up @@ -242,7 +242,7 @@ String.prototype.php_to8bit = function ()
sReturn += iOffsetFrom > -1 ? this.oCharsetConversion.to.charAt(iOffsetFrom) : (this.charCodeAt(i) > 127 ? '&#' + this.charCodeAt(i) + ';' : this.charAt(i));
}

return sReturn
return sReturn;
}

// Character-level replacement function.
Expand Down Expand Up @@ -816,7 +816,7 @@ smc_Toggle.prototype.init = function ()
this.oCookie = new smc_Cookie({});

// Check if the cookie is set.
var cookieValue = this.oCookie.get(this.opt.oCookieOptions.sCookieName)
var cookieValue = this.oCookie.get(this.opt.oCookieOptions.sCookieName);
if (cookieValue != null)
this.opt.bCurrentlyCollapsed = cookieValue == '1';
}
Expand Down
3 changes: 1 addition & 2 deletions themes/default/scripts/sha1.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,4 @@ function binb2b64(binarray)
}
}
return str;
}

}

0 comments on commit 4e9ebad

Please sign in to comment.