summaryrefslogtreecommitdiffstats
path: root/provisioning-listclasses-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'provisioning-listclasses-html.lsp')
-rw-r--r--provisioning-listclasses-html.lsp14
1 files changed, 12 insertions, 2 deletions
diff --git a/provisioning-listclasses-html.lsp b/provisioning-listclasses-html.lsp
index cad8c4e..f3f4db5 100644
--- a/provisioning-listclasses-html.lsp
+++ b/provisioning-listclasses-html.lsp
@@ -3,8 +3,18 @@ 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">
+ if (typeof $.tablesorter == 'undefined') {
+ document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery.tablesorter.js"><\/script>');
+ }
+</script>
+
<script type="text/javascript">
<% -- Since we're including a submission of getclassvalues, we need to overcome the automatic redirect
if session.getclassvaluesresult then