summaryrefslogtreecommitdiffstats
path: root/provisioning-editdeviceparams-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'provisioning-editdeviceparams-html.lsp')
-rw-r--r--provisioning-editdeviceparams-html.lsp7
1 files changed, 6 insertions, 1 deletions
diff --git a/provisioning-editdeviceparams-html.lsp b/provisioning-editdeviceparams-html.lsp
index 565d30b..e2f9d3c 100644
--- a/provisioning-editdeviceparams-html.lsp
+++ b/provisioning-editdeviceparams-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">
<% -- Since we're including deletedevice as a component, we break the automatic redirect
if session.deletedeviceresult and not session.deletedeviceresult.errtxt and viewlibrary.check_permission("listdevices") then