[Svn] r6083 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Sat Apr 14 08:28:10 CEST 2012


Author: alec
Date: 2012-04-14 01:28:10 -0500 (Sat, 14 Apr 2012)
New Revision: 6083

Modified:
   trunk/roundcubemail/program/include/rcube_ui.php
Log:
- Fix folder collapsing/expanding broken with framework merge (#1488430)


Modified: trunk/roundcubemail/program/include/rcube_ui.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_ui.php	2012-04-13 15:56:28 UTC (rev 6082)
+++ trunk/roundcubemail/program/include/rcube_ui.php	2012-04-14 06:28:10 UTC (rev 6083)
@@ -842,7 +842,7 @@
         foreach ($arrFolders as $key => $folder) {
             $title        = null;
             $folder_class = self::folder_classname($folder['id']);
-            $collapsed    = strpos($collapsed, '&'.rawurlencode($folder['id']).'&') !== false;
+            $is_collapsed = strpos($collapsed, '&'.rawurlencode($folder['id']).'&') !== false;
             $unread       = $msgcounts ? intval($msgcounts[$folder['id']]['UNSEEN']) : 0;
 
             if ($folder_class && !$realnames) {
@@ -896,7 +896,7 @@
                 'noclose' => true),
                 html::a($link_attrib, $html_name) .
                 (!empty($folder['folders']) ? html::div(array(
-                    'class' => ($collapsed ? 'collapsed' : 'expanded'),
+                    'class' => ($is_collapsed ? 'collapsed' : 'expanded'),
                     'style' => "position:absolute",
                     'onclick' => sprintf("%s.command('collapse-folder', '%s')", JS_OBJECT_NAME, $js_name)
                 ), ' ') : ''));
@@ -908,7 +908,7 @@
             );
 
             if (!empty($folder['folders'])) {
-                $out .= html::tag('ul', array('style' => ($collapsed ? "display:none;" : null)),
+                $out .= html::tag('ul', array('style' => ($is_collapsed ? "display:none;" : null)),
                     self::render_folder_tree_html($folder['folders'], $mbox_name, $jslist, $attrib, $nestLevel+1));
             }
 



More information about the svn mailing list