Author: sevein
Date: Thu Aug  9 11:24:19 2012
New Revision: 12060

Log:
Fix small bug in the treeview scroll

Modified:
   trunk/js/treeView.js

Modified: trunk/js/treeView.js
==============================================================================
--- trunk/js/treeView.js        Thu Aug  9 11:04:02 2012        (r12059)
+++ trunk/js/treeView.js        Thu Aug  9 11:24:19 2012        (r12060)
@@ -334,7 +334,8 @@
           // Delay the trigger
           window.setTimeout(function()
             {
-              self.$element.find('.more').eq(1).trigger('click');
+              var $more = self.$element.find('.more');
+              $more.eq($more.length > 1 ? 1 : 0).trigger('click');
             }, 250);
         }
       },

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to