summaryrefslogtreecommitdiffstats
path: root/app/template-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-03 22:39:41 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-03 22:39:41 +0000
commite0f7b0c0c51a11b18a602833f554c6a7a85de7e5 (patch)
treeb054f80865b91b0e4f2c255bf239b01069556c3a /app/template-html.lsp
parent60a614f7523afed927905d6f93cd8ee568e50c7c (diff)
downloadacf-core-e0f7b0c0c51a11b18a602833f554c6a7a85de7e5.tar.bz2
acf-core-e0f7b0c0c51a11b18a602833f554c6a7a85de7e5.tar.xz
Check if jquery already loaded before loading again
Diffstat (limited to 'app/template-html.lsp')
-rw-r--r--app/template-html.lsp10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/template-html.lsp b/app/template-html.lsp
index 34bc824..4da3175 100644
--- a/app/template-html.lsp
+++ b/app/template-html.lsp
@@ -13,6 +13,7 @@ Content-Type: text/html
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<%
local hostname = ""
@@ -31,12 +32,17 @@ end
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="<%= html.html_escape(pageinfo.wwwprefix..pageinfo.skin.."/"..posix.basename(pageinfo.skin).."-ie.css") %>">
<![endif]-->
-<script type="text/javascript" src="<%= html.html_escape(pageinfo.wwwprefix) %>/js/jquery-latest.js"></script>
+<script type="text/javascript">
+ if (typeof jQuery == 'undefined') {
+ document.write('<script type="text/javascript" src="<%= html.html_escape(pageinfo.wwwprefix) %>/js/jquery-latest.js"><\/script>');
+ }
+</script>
<script type="text/javascript" src="<%= html.html_escape(pageinfo.wwwprefix..pageinfo.skin.."/"..posix.basename(pageinfo.skin)..".js") %>"></script>
<script type="text/javascript">
$(function(){
$(":input:not(:submit):enabled:not([readonly]):first").focus();
- });</script>
+ });
+</script>
<% end -- pageinfo.skinned %>
</head>
<body>