Author: sevein
Date: Thu Aug 9 11:38:04 2012
New Revision: 12061
Log:
Again, fix treeview scrolling logic to make sure that the click event is
triggered on the right 'more' button
Modified:
trunk/js/treeView.js
Modified: trunk/js/treeView.js
==============================================================================
--- trunk/js/treeView.js Thu Aug 9 11:24:19 2012 (r12060)
+++ trunk/js/treeView.js Thu Aug 9 11:38:04 2012 (r12061)
@@ -334,8 +334,16 @@
// Delay the trigger
window.setTimeout(function()
{
- var $more = self.$element.find('.more');
- $more.eq($more.length > 1 ? 1 : 0).trigger('click');
+ var $more = self.$element.find('.more:last');
+
+ // Make sure that we have selected the nextSiblings button
+ if (0 < $more.next().length)
+ {
+ return;
+ }
+
+ $more.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.