summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-14 20:20:16 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-14 20:20:16 +0545
commit947141fd21b4496d8963d1598d6ca6a2e000702c (patch)
treec4f39f94d05059417f3e5743fc7c826ea52657fc /src/usr/local/www/edit.php
parent9ba351c17e4c85e01832e38b6ba7b6a7898a290d (diff)
downloadpfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.zip
pfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.tar.gz
Code style usr local www a-e
Diffstat (limited to 'src/usr/local/www/edit.php')
-rw-r--r--src/usr/local/www/edit.php19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/usr/local/www/edit.php b/src/usr/local/www/edit.php
index f4ecde7..29e073b 100644
--- a/src/usr/local/www/edit.php
+++ b/src/usr/local/www/edit.php
@@ -138,7 +138,7 @@ require("head.inc");
<div style="background:#eeeeee;" id="fileOutput">
<script type="text/javascript">
//<![CDATA[
- window.onload=function(){
+ window.onload=function() {
document.getElementById("fileContent").wrap='off';
}
//]]>
@@ -173,8 +173,7 @@ require("head.inc");
var fileContent = window.atob(values.join("|"));
jQuery("#fileContent").val(fileContent);
- }
- else {
+ } else {
jQuery("#fileStatus").html(values[0]);
jQuery("#fileContent").val("");
}
@@ -296,12 +295,10 @@ var Base64 = {
if (c < 128) {
utftext += String.fromCharCode(c);
- }
- else if((c > 127) && (c < 2048)) {
+ } else if ((c > 127) && (c < 2048)) {
utftext += String.fromCharCode((c >> 6) | 192);
utftext += String.fromCharCode((c & 63) | 128);
- }
- else {
+ } else {
utftext += String.fromCharCode((c >> 12) | 224);
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
utftext += String.fromCharCode((c & 63) | 128);
@@ -318,20 +315,18 @@ var Base64 = {
var i = 0;
var c = c1 = c2 = 0;
- while ( i < utftext.length ) {
+ while (i < utftext.length) {
c = utftext.charCodeAt(i);
if (c < 128) {
string += String.fromCharCode(c);
i++;
- }
- else if((c > 191) && (c < 224)) {
+ } else if ((c > 191) && (c < 224)) {
c2 = utftext.charCodeAt(i+1);
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
i += 2;
- }
- else {
+ } else {
c2 = utftext.charCodeAt(i+1);
c3 = utftext.charCodeAt(i+2);
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
OpenPOWER on IntegriCloud