diff options
Diffstat (limited to 'awall-listpolicies-html.lsp')
-rw-r--r-- | awall-listpolicies-html.lsp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/awall-listpolicies-html.lsp b/awall-listpolicies-html.lsp index 1d807e9..6955e4f 100644 --- a/awall-listpolicies-html.lsp +++ b/awall-listpolicies-html.lsp @@ -3,8 +3,12 @@ require("htmlviewfunctions") html = require("acf.html") %> -<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"></script> -<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery.tablesorter.js"></script> +<script type="text/javascript"> + if (typeof jQuery == 'undefined') { + document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"><\/script>'); + } +</script> + <script type="text/javascript"> $(document).ready(function() { $(".deletepolicy").click(function(){ return confirm("Are you sure you want to delete this policy?")}); |