summaryrefslogtreecommitdiffstats
path: root/provisioning-searchdevices-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-03 20:24:07 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-03 20:24:07 +0000
commitd8a41cc90f4ed30ab418bd662d93a1fa9cac5fb1 (patch)
tree02d74edc36ea90a71398b614e5ad520b206d3d7f /provisioning-searchdevices-html.lsp
parent55ae291444d575d80e885e35b64d1e98fbadc4c2 (diff)
downloadacf-provisioning-d8a41cc90f4ed30ab418bd662d93a1fa9cac5fb1.tar.bz2
acf-provisioning-d8a41cc90f4ed30ab418bd662d93a1fa9cac5fb1.tar.xz
Only include js libraries if not already included
Diffstat (limited to 'provisioning-searchdevices-html.lsp')
-rw-r--r--provisioning-searchdevices-html.lsp7
1 files changed, 6 insertions, 1 deletions
diff --git a/provisioning-searchdevices-html.lsp b/provisioning-searchdevices-html.lsp
index 76dea64..e34b9a0 100644
--- a/provisioning-searchdevices-html.lsp
+++ b/provisioning-searchdevices-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(){
$('input, select').first().focus();