diff options
-rw-r--r-- | app/dispatcherror-html.lsp | 7 | ||||
-rw-r--r-- | app/exception-html.lsp | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/app/dispatcherror-html.lsp b/app/dispatcherror-html.lsp index 25c8118..cb23637 100644 --- a/app/dispatcherror-html.lsp +++ b/app/dispatcherror-html.lsp @@ -11,7 +11,12 @@ font-size: 75%; } </style> -<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"> var clickIt = function(){ $("p.hiddendetail").removeClass("hiddendetail").show("slow"); diff --git a/app/exception-html.lsp b/app/exception-html.lsp index a460abe..013f457 100644 --- a/app/exception-html.lsp +++ b/app/exception-html.lsp @@ -11,7 +11,12 @@ font-size: 75%; } </style> -<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"> var clickIt = function(){ $("p.hiddendetail").removeClass("hiddendetail").show("slow"); |