diff options
Diffstat (limited to 'vmail-listmessages-html.lsp')
-rw-r--r-- | vmail-listmessages-html.lsp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/vmail-listmessages-html.lsp b/vmail-listmessages-html.lsp index a7553b2..53d9187 100644 --- a/vmail-listmessages-html.lsp +++ b/vmail-listmessages-html.lsp @@ -50,8 +50,18 @@ if viewlibrary.check_permission("editmyusersettings") and viewlibrary.check_perm end %> -<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"> <% -- Browser detect script from http://www.quirksmode.org/js/detect.html %> var BrowserDetect = { |