[Rt-commit] r11850 - in rt/branches/3.8-TESTING: html/Elements

jesse at bestpractical.com jesse at bestpractical.com
Wed Apr 23 17:29:55 EDT 2008


Author: jesse
Date: Wed Apr 23 17:29:53 2008
New Revision: 11850

Added:
   rt/branches/3.8-TESTING/html/Elements/HeaderJavascript
Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/html/Elements/Header

Log:
 r30018 at 31b:  jesse | 2008-04-23 15:54:57 -0400
 * move our javascript definitions into a separate mason component


Modified: rt/branches/3.8-TESTING/html/Elements/Header
==============================================================================
--- rt/branches/3.8-TESTING/html/Elements/Header	(original)
+++ rt/branches/3.8-TESTING/html/Elements/Header	Wed Apr 23 17:29:53 2008
@@ -64,18 +64,7 @@
     <link rel="alternate" href="<%$RSSAutoDiscovery%>" type="application/rss+xml" title="RSS RT Search" />
 % }
 
-<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/util.js"></script>
-<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/titlebox-state.js"></script>
-<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/ahah.js"></script>
-<script type="text/javascript"><!--
-    onLoadHook("loadTitleBoxStates()");
-% if ( $Focus ) {
-    onLoadHook("focusElementById('<% $Focus %>')");
-% }
-% if ( $onload ) {
-    onLoadHook("<% $onload |n %>");
-% }
---></script>
+<& HeaderJavascript, focus => $Focus, onload => $onload &>
 % my $stylesheet_plugin = "/NoAuth/css/". RT->Config->Get( 'WebDefaultStylesheet', $session{'CurrentUser'} )."/InHeader";
 % if ($m->comp_exists($stylesheet_plugin) ) {
 <& $stylesheet_plugin &>

Added: rt/branches/3.8-TESTING/html/Elements/HeaderJavascript
==============================================================================
--- (empty file)
+++ rt/branches/3.8-TESTING/html/Elements/HeaderJavascript	Wed Apr 23 17:29:53 2008
@@ -0,0 +1,16 @@
+<%args>
+$focus => undef
+$onload => undef
+</%args>
+<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/util.js"></script>
+<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/titlebox-state.js"></script>
+<script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/ahah.js"></script>
+<script type="text/javascript"><!--
+    onLoadHook("loadTitleBoxStates()");
+% if ( $focus ) {
+    onLoadHook("focusElementById('<% $focus %>')");
+% }
+% if ( $onload ) {
+    onLoadHook("<% $onload |n %>");
+% }
+--></script>


More information about the Rt-commit mailing list