Permalink
Browse files

MINOR Added support for preselected tabs in $('.ss-ui-tabs-nav')

  • Loading branch information...
1 parent e12a3a4 commit 115ea86b0c96235b3861408d6be2928335cf89b4 @chillu chillu committed Mar 9, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 admin/javascript/ssui.core.js
@@ -15,7 +15,9 @@
this.find('ul').addClass('ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all');
this.find('li').addClass('ui-state-default ui-corner-top');
// TODO Figure out selected tab
- this.find('li:first').selectIt();
+ var selected = this.find('li.current');
+ if(!selected.length) selected = this.find('li:first');
+ selected.selectIt();
}
});

0 comments on commit 115ea86

Please sign in to comment.