From c3762a5ad5ef8940b7c8d456675edc371f656c80 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 04 Jul 2013 05:19:20 -0400
Subject: [PATCH] Fix folder names truncation in Classic skin (#1489220) Fix bug where not all event handlers were executed (because body onload was executed after rcmail init function, sometimes)

---
 skins/classic/templates/compose.html |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/skins/classic/templates/compose.html b/skins/classic/templates/compose.html
index 5b0b479..660f354 100644
--- a/skins/classic/templates/compose.html
+++ b/skins/classic/templates/compose.html
@@ -16,10 +16,10 @@
 </style>
 </head>
 <roundcube:if condition="env:extwin" />
-<body class="extwin" onload="rcube_init_mail_ui()">
+<body class="extwin">
 <roundcube:object name="message" id="message" />
 <roundcube:else />
-<body onload="rcube_init_mail_ui()">
+<body>
 <roundcube:include file="/includes/taskbar.html" />
 <roundcube:include file="/includes/header.html" />
 <roundcube:endif />
@@ -197,5 +197,9 @@
 
 <roundcube:object name="composeAttachmentForm" id="attachment-form" attachmentFieldSize="40" class="popupmenu" />
 
+<script type="text/javascript">
+rcube_init_mail_ui();
+</script>
+
 </body>
 </html>

--
Gitblit v1.9.1