diff options
Diffstat (limited to 'provisioning-editdevice-html.lsp')
-rw-r--r-- | provisioning-editdevice-html.lsp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/provisioning-editdevice-html.lsp b/provisioning-editdevice-html.lsp index 827ea9b..2f425e4 100644 --- a/provisioning-editdevice-html.lsp +++ b/provisioning-editdevice-html.lsp @@ -3,9 +3,13 @@ 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 want to redirect to edit a new device's parameters, we create an automatic redirect if page_info.action == "createdevice" and form.descr and not form.errtxt then -- Use JavaScript to redirect to the edit page |