diff options
Diffstat (limited to 'provisioning-listgroups-html.lsp')
-rw-r--r-- | provisioning-listgroups-html.lsp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/provisioning-listgroups-html.lsp b/provisioning-listgroups-html.lsp index 6aaf2d0..a7afb6d 100644 --- a/provisioning-listgroups-html.lsp +++ b/provisioning-listgroups-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"> $(document).ready(function() { $("#list").tablesorter({headers: {0:{sorter: false}}}); |