diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-01 09:56:21 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-01 09:57:26 -0500 |
commit | 1c337bc3513e322e8744f8ff19ec4d6895121962 (patch) | |
tree | 38e753e1fc26de091dd4976d57f3bfe1d0a3d664 /src/usr/local/www | |
parent | 298ffc5eba7457bc7f8946458e99107a190a4507 (diff) | |
download | pfsense-1c337bc3513e322e8744f8ff19ec4d6895121962.zip pfsense-1c337bc3513e322e8744f8ff19ec4d6895121962.tar.gz |
Move Javascript stuff before the 'include("foot.inc")' where it belongs. thereby eliminating a "stray tag" warning.
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/diag_logs_filter.php | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/usr/local/www/diag_logs_filter.php b/src/usr/local/www/diag_logs_filter.php index 4142cf9..7de155a 100644 --- a/src/usr/local/www/diag_logs_filter.php +++ b/src/usr/local/www/diag_logs_filter.php @@ -514,21 +514,14 @@ print_info_box('<a href="https://doc.pfsense.org/index.php/What_are_TCP_Flags%3F <!-- AJAXY STUFF --> <script type="text/javascript"> //<![CDATA[ - function outputrule(req) { - alert(req.content); - } -//]]> -</script> - -<?php include("foot.inc"); -?> -<script type="text/javascript"> -//<![CDATA[ +function outputrule(req) { + alert(req.content); +} function resolve_with_ajax(ip_to_resolve) { var url = "/diag_logs_filter.php"; - jQuery.ajax( + $.ajax( url, { method: 'post', @@ -542,7 +535,7 @@ function resolve_with_ajax(ip_to_resolve) { } function resolve_ip_callback(transport) { - var response = jQuery.parseJSON(transport.responseText); + var response = $.parseJSON(transport.responseText); var resolve_class = htmlspecialchars(response.resolve_ip.replace(/[.:]/g, '-')); var resolve_text = '<small><br />' + htmlspecialchars(response.resolve_text) + '<\/small>'; @@ -597,3 +590,6 @@ events.push(function(){ }); //]]> </script> + +<?php include("foot.inc"); +?> |