[Rt-commit] r17975 - in rt/3.999/branches/merge_to_3.8.2: .

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Jan 28 22:34:21 EST 2009


Author: sunnavy
Date: Wed Jan 28 22:34:19 2009
New Revision: 17975

Modified:
   rt/3.999/branches/merge_to_3.8.2/   (props changed)
   rt/3.999/branches/merge_to_3.8.2/share/html/Elements/HeaderJavascript

Log:
 r19135 at sunnavys-mb:  sunnavy | 2009-01-29 10:23:21 +0800
 merged share/html/Elements/HeaderJavascript


Modified: rt/3.999/branches/merge_to_3.8.2/share/html/Elements/HeaderJavascript
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/share/html/Elements/HeaderJavascript	(original)
+++ rt/3.999/branches/merge_to_3.8.2/share/html/Elements/HeaderJavascript	Wed Jan 28 22:34:19 2009
@@ -52,9 +52,9 @@
 <% Jifty->web->include_css %>
 <% Jifty->web->include_javascript %> 
 <script type="text/javascript"><!--
-    onLoadHook("loadTitleBoxStates()");
+    doOnLoad(loadTitleBoxStates);
 % if ( $focus ) {
-    onLoadHook("focusElementById('<% $focus %>')");
+    doOnLoad(function () { focusElementByid('<% $focus %>') });
 % }
 
 % if ( RT->config->get('MessageBoxRichText',  Jifty->web->current_user)) {
@@ -98,16 +98,16 @@
                 typeField.setAttribute('value', 'text/html');
                 textArea.parentNode.appendChild(typeField);
 
-                var oFCKeditor = new FCKeditor( textArea.name ) ;
+                var oFCKeditor = new FCKeditor( textArea.name, '100%', <% RT->config->get('MessageBoxRichTextHeight') %> );
                 oFCKeditor.BasePath = "<%RT->config->get('WebPath')%>/NoAuth/RichText/";
                 oFCKeditor.ReplaceTextarea();
             }
         }
     }
-    onLoadHook("ReplaceAllTextareas()");
+    doOnLoad(ReplaceAllTextareas);
 % }
 % if ( $onload ) {
-    onLoadHook("<% $onload |n %>");
+    doOnLoad(<% $onload |n %>);
 % }
 --></script>
 


More information about the Rt-commit mailing list