diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-05-22 15:25:09 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-05-22 15:25:09 -0300 |
commit | 2839155ac0eb43b5e8f7f72883b6a8f127c07bb2 (patch) | |
tree | b172a80bc754daf1dfa375a99b96dc4f64453825 /usr/local | |
parent | 8586d275ee2836eb05795f6419d57cdb469bddc3 (diff) | |
parent | 112546f8764e0c5d78f4d3e87c5c538481f469a1 (diff) | |
download | pfsense-2839155ac0eb43b5e8f7f72883b6a8f127c07bb2.zip pfsense-2839155ac0eb43b5e8f7f72883b6a8f127c07bb2.tar.gz |
Merge pull request #1159 from ExolonDX/branch_master_06
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/status_filter_reload.php | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/usr/local/www/status_filter_reload.php b/usr/local/www/status_filter_reload.php index 4575a19..9b04716 100644 --- a/usr/local/www/status_filter_reload.php +++ b/usr/local/www/status_filter_reload.php @@ -70,27 +70,28 @@ include("head.inc"); <?php include("fbegin.inc"); ?> <br /> <form action="status_filter_reload.php" method="post" name="filter"> -<input type="submit" value="Reload Filter" name="reloadfilter" id="reloadfilter"> +<input type="submit" value="Reload Filter" name="reloadfilter" id="reloadfilter" /> <?php if ($config['hasync'] && $config['hasync']["synchronizetoip"] != ""): ?> -<input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter"> +<input type="submit" value="Force Config Sync" name="syncfilter" id="syncfilter" /> <?php endif; ?> </form> <br /><br /><br /> -<div id="status" name="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;"> +<div id="status" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000;"> <?php echo $status; ?> </div> -<div id="doneurl" name="doneurl"> +<div id="doneurl"> </div> -<p> +<br/> -<div id="reloadinfo" name="reloadinfo"><?=gettext("This page will automatically refresh every 3 seconds until the filter is done reloading"); ?>.</div> +<div id="reloadinfo"><?=gettext("This page will automatically refresh every 3 seconds until the filter is done reloading"); ?>.</div> <script type="text/javascript"> +//<![CDATA[ /* init update "thread */ function update_status_thread() { getURL('status_filter_reload.php?getstatus=true', update_data); @@ -102,24 +103,26 @@ function update_data(obj) { result_text = result_text.replace("\n",""); result_text = result_text.replace("\r",""); if (result_text) { - jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> ' + result_text + '...'); + jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="loader" /> ' + result_text + '...'); } else { - jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> Obtaining filter status...'); + jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="loader" /> Obtaining filter status...'); } if(result_text == "Initializing") { - jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif"> Initializing...'); + jQuery('#status').html('<img src="/themes/<?=$g['theme'];?>/images/misc/loader.gif" alt="loader" /> Initializing...'); } else if(result_text == "Done") { jQuery('#status').effect('highlight'); jQuery('#status').html('Done. The filter rules have been reloaded.'); jQuery('#reloadinfo').css("visibility","hidden"); jQuery('#doneurl').css("visibility","visible"); - jQuery('#doneurl').html("<p/><a href='status_queues.php'>Queue Status</a>"); + jQuery('#doneurl').html("<p><a href='status_queues.php'>Queue Status<\/a><\/p>"); } window.setTimeout('update_status_thread()', 2500); } +//]]> </script> <script type="text/javascript"> +//<![CDATA[ /* * getURL is a proprietary Adobe function, but it's simplicity has made it very * popular. If getURL is undefined we spin our own by wrapping XMLHttpRequest. @@ -164,6 +167,7 @@ if (typeof getURL == 'undefined') { } } window.setTimeout('update_status_thread()', 2500); +//]]> </script> <?php include("fend.inc"); ?> |