[Rt-commit] r15895 - in rt/branches/3.999-DANGEROUS: lib share/html/Elements share/html/NoAuth/js share/web/static share/web/static/js

clkao at bestpractical.com clkao at bestpractical.com
Wed Sep 10 13:22:18 EDT 2008


Author: clkao
Date: Wed Sep 10 13:22:16 2008
New Revision: 15895

Added:
   rt/branches/3.999-DANGEROUS/share/web/
   rt/branches/3.999-DANGEROUS/share/web/static/
   rt/branches/3.999-DANGEROUS/share/web/static/js/
   rt/branches/3.999-DANGEROUS/share/web/static/js/titlebox-state.js
      - copied, changed from r15894, /rt/branches/3.999-DANGEROUS/share/html/NoAuth/js/titlebox-state.js
Removed:
   rt/branches/3.999-DANGEROUS/share/html/NoAuth/js/titlebox-state.js
Modified:
   rt/branches/3.999-DANGEROUS/lib/RT.pm
   rt/branches/3.999-DANGEROUS/share/html/Elements/HeaderJavascript

Log:
move titlebox-state.js to use the jifty way for app js.


Modified: rt/branches/3.999-DANGEROUS/lib/RT.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT.pm	Wed Sep 10 13:22:16 2008
@@ -353,6 +353,10 @@
     Jifty->new;
 }
 
+Jifty->web->add_javascript(
+    qw( titlebox-state.js )
+);
+
 Jifty::Web->add_trigger(
     name      => 'after_include_javascript',
     callback  => sub {

Modified: rt/branches/3.999-DANGEROUS/share/html/Elements/HeaderJavascript
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Elements/HeaderJavascript	(original)
+++ rt/branches/3.999-DANGEROUS/share/html/Elements/HeaderJavascript	Wed Sep 10 13:22:16 2008
@@ -52,7 +52,6 @@
 <% Jifty->web->include_css %>
 <% Jifty->web->include_javascript %> 
 <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" src="<%RT->config->get('WebPath')%>/NoAuth/js/prototype/prototype.js"></script>
 % if ( RT->config->get('MessageBoxRichText',  Jifty->web->current_user) ) {

Copied: rt/branches/3.999-DANGEROUS/share/web/static/js/titlebox-state.js (from r15894, /rt/branches/3.999-DANGEROUS/share/html/NoAuth/js/titlebox-state.js)
==============================================================================
--- /rt/branches/3.999-DANGEROUS/share/html/NoAuth/js/titlebox-state.js	(original)
+++ rt/branches/3.999-DANGEROUS/share/web/static/js/titlebox-state.js	Wed Sep 10 13:22:16 2008
@@ -1,3 +1,4 @@
+/*
 %# BEGIN BPS TAGGED BLOCK {{{
 %# 
 %# COPYRIGHT:
@@ -45,6 +46,7 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
+*/
 function createCookie(name,value,days) {
     var path = RT.WebPath;
 


More information about the Rt-commit mailing list