Skip to content

Commit

Permalink
Javascript formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carbis committed May 21, 2014
1 parent cb5466f commit 14efe8b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ui/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ jQuery(function($){
}

$('#record-filter-form').submit( function() {
var $context = $( '.toplevel_page_wp_stream :input.chosen-select[name=context]' ),
$option = $context.find( 'option:selected' ),
$connector = $context.parent().find( '.record-filter-connector' ),
option_connector = $option.data( 'group' ),
option_class = $option.prop( 'class' );
var $context = $( '.toplevel_page_wp_stream :input.chosen-select[name=context]' ),
$option = $context.find( 'option:selected' ),
$connector = $context.parent().find( '.record-filter-connector' ),
optionConnector = $option.data( 'group' ),
optionClass = $option.prop( 'class' );

$connector.val( option_connector );
$connector.val( optionConnector );

if ( 'level-1' === option_class ) {
if ( 'level-1' === optionClass ) {
$option.val('');
}
});
Expand Down

1 comment on commit 14efe8b

@frankiejarrett
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukecarbis Thanks for this 👍

Please sign in to comment.