Skip to content

Commit

Permalink
Merge pull request #297 from x-team/issue-288
Browse files Browse the repository at this point in the history
Issue 288: Minor glitch in UI when switching between Settings tabs
  • Loading branch information
frankiejarrett committed Mar 5, 2014
2 parents 30d72ea + ffad95e commit 949511c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ui/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,7 @@
.toplevel_page_wp_stream .new-row.fadeout {
background-color: transparent;
}

.stream_page_wp_stream_settings .nav-tab-wrapper a:not(.nav-tab-active) {
border-bottom: 1px solid #ccc;
}
4 changes: 2 additions & 2 deletions ui/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ jQuery(function($){
$optionsForm.prop('action', currentAction.replace( /(^[^#]*).*$/, '$1#' + index ));
};

$tabs.on('click', 'a', function(e){
e.preventDefault();
$tabs.on('click', 'a', function(){
var index = $tabs.find('a').index( $(this) );
$panels.hide().eq(index).show();
$tabs.find('a').removeClass('nav-tab-active').filter($(this)).addClass('nav-tab-active');
window.location.hash = index;
syncFormAction(index);
return false;
});
$tabs.children().eq( currentHash ).trigger('click');

Expand Down

0 comments on commit 949511c

Please sign in to comment.