diff options
-rw-r--r-- | opennhrp-editinterface-html.lsp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/opennhrp-editinterface-html.lsp b/opennhrp-editinterface-html.lsp index 59f5946..6caa8d1 100644 --- a/opennhrp-editinterface-html.lsp +++ b/opennhrp-editinterface-html.lsp @@ -3,7 +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"> + 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"> function enabledisable(){ if ($("[name='type']").val() == "NHRP Enabled") { |