Skip to content
Browse files

Sort GridViewer 'lower' tabs by tab title

  • Loading branch information...
1 parent 47bdccc commit 334912b27aa18bf9b12417bba228e748b9562789 @nabcos nabcos committed with cstamas Nov 13, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 nexus/nexus-webapp/src/main/webapp/js/nexus/panels/GridViewer.js
View
3 nexus/nexus-webapp/src/main/webapp/js/nexus/panels/GridViewer.js
@@ -390,6 +390,9 @@ Ext.namespace('Sonatype.panels');
child.on('cancel', this.cancelHandler.createDelegate(this, [child]), this);
}
else {
+ panel.tabPanel.items.sort('ASC', function(a,b) {
+ return a.tabTitle >= b.tabTitle;
+ });
panel.tabPanel.on('beforetabchange', function(tabpanel, newtab, currenttab) {
// don't want to set this unless user clicked
if (currenttab) {

0 comments on commit 334912b

Please sign in to comment.
Something went wrong with that request. Please try again.