[Jifty-commit] r1047 - in jifty/branches/jifty-jsan:
share/web/templates/_elements
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat May 13 16:43:38 EDT 2006
Author: trs
Date: Sat May 13 16:43:34 2006
New Revision: 1047
Modified:
jifty/branches/jifty-jsan/ (props changed)
jifty/branches/jifty-jsan/share/web/templates/_elements/javascript
Log:
r12269 at zot: tom | 2006-05-13 16:40:32 -0400
Put JSAN.js first and take care of its config _before_ loading anything that uses it. Plus, be a little smarter about the includePath and errorLevel.
Modified: jifty/branches/jifty-jsan/share/web/templates/_elements/javascript
==============================================================================
--- jifty/branches/jifty-jsan/share/web/templates/_elements/javascript (original)
+++ jifty/branches/jifty-jsan/share/web/templates/_elements/javascript Sat May 13 16:43:34 2006
@@ -2,7 +2,6 @@
# XXX TODO: stick this into libs
my @libs = qw(
- /static/js/jsan/JSAN.js
/static/js/json.js
/static/js/prototype.js
/static/js/cssquery/cssQuery.js
@@ -24,12 +23,17 @@
);
</%init>
+ <script type="text/javascript" src="/static/js/jsan/JSAN.js"></script>
+ <script type="text/javascript">
+ JSAN.includePath = [ "/static/js/jsan" ];
+% if ( Jifty->config->framework("DevelMode") ) {
+ JSAN.errorLevel = "warn";
+% } else {
+ JSAN.errorLevel = "none";
+% }
+ </script>
+
% for (@libs) {
<script type="text/javascript" src="<%$_%>"></script>
% }
- <script type="text/javascript">
- JSAN.errorLevel = 'warn';
- JSAN.addRespository('/static/js/jsan');
- </script>
-
More information about the Jifty-commit
mailing list