From 52c26184c9e2f0a6ff34fda5daef36ec0d2c7b59 Mon Sep 17 00:00:00 2001 From: alec Date: Sat, 20 Jun 2009 13:43:28 +0000 Subject: - one hasClass check less git-svn-id: https://svn.roundcube.net/trunk@2669 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'roundcubemail/program/js') diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 10cfb5790..93ee4d8bb 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -1336,9 +1336,7 @@ function rcube_webmail() rcmail.command("collapse-folder", rcmail.folder_auto_expand); rcmail.drag_start(null); }, 1000); - } - - if (!div.hasClass('collapsed') && this.folder_auto_timer) { + } else if (this.folder_auto_timer) { window.clearTimeout(this.folder_auto_timer); this.folder_auto_timer = null; this.folder_auto_expand = null; -- cgit v1.2.3