diff options
author | Bill Marquette <bill.marquette@gmail.com> | 2009-03-13 21:33:25 -0500 |
---|---|---|
committer | Bill Marquette <bill.marquette@gmail.com> | 2009-03-13 21:33:46 -0500 |
commit | 5fbefa5b179efd7170dd7cb398f0d83320764e5e (patch) | |
tree | 2f653babf3b7fb2b9123d2f463663dfe6160bc6d | |
parent | 218111c88a04b36b57a26ca4a2602141c198c119 (diff) | |
download | pfsense-5fbefa5b179efd7170dd7cb398f0d83320764e5e.zip pfsense-5fbefa5b179efd7170dd7cb398f0d83320764e5e.tar.gz |
cleanup minor javascript issues
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 | ||||
-rwxr-xr-x | usr/local/www/system_firmware_check.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 1dd4721..66cca75 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1655,7 +1655,7 @@ function update_status($status) { if($pkg_interface == "console") { echo $status . "\n"; } else { - echo "\n<script type=\"text/javascript\">document.forms[0].status.value=\"" . $status . "\";</script>"; + echo "\n<script type=\"text/javascript\">this.document.forms[0].status.value=\"" . $status . "\";</script>"; } /* ensure that contents are written out */ ob_flush(); diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php index 8cdae53..9af821f 100755 --- a/usr/local/www/system_firmware_check.php +++ b/usr/local/www/system_firmware_check.php @@ -124,7 +124,7 @@ if(isset($curcfg['alturl']['enable'])) else $updater_url = $g['update_url']; -update_status("Downloading current version information..."); +update_output_window("Downloading current version information..."); $latest_version = download_file_with_progress_bar("{$updater_url}/version", "/tmp/{$g['product_name']}_version"); if(strstr($latest_version,"404")) { @@ -147,7 +147,7 @@ if(!$latest_version) { update_output_window("Could not contact {$g['product_name']} update server {$updater_url}."); } else { if($needs_system_upgrade) { - echo "\n<script language=\"JavaScript\">$('invokeupgrade').style.visibility = 'visible';</script>"; + echo "\n<script>$('invokeupgrade').style.visibility = 'visible';</script>"; $txt = "A new version is now available \\n\\n"; $txt .= "New version: {$latest_version}\\n"; $txt .= "Current version: {$current_installed_pfsense_version}\\n"; |