Skip to content

Commit

Permalink
Merge Pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
UmeshSingla committed Jun 27, 2015
2 parents a61d8a6 + 18238a6 commit 8e16a79
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,13 @@ ul.user-profile-taxonomy .ntdelbutton {
background: white;
padding: 10px;
width: 400px;
}

.ut-taxonomy-filter {
display:inline-block;
float:none;
}

.ut-reset-filters {
margin-left: 10px;
}
14 changes: 14 additions & 0 deletions assets/js/user_taxonomy.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,18 @@ jQuery(document).ready(function ($) {
jQuery('.user-taxonomies-page #message.below-h2').remove();
});
}, 3000);
// User Taxonomy Filters
jQuery('.users-php select.ut-taxonomy-filter').each( function() {
if ($(this).val() != '') {
$('select.ut-taxonomy-filter').not(this).prop('disabled', true);
}
});

jQuery('.users-php').on('change', 'select.ut-taxonomy-filter', function() {
if ($(this).val() == '') {
$('select.ut-taxonomy-filter').prop('disabled', false);
} else {
$('select.ut-taxonomy-filter').not(this).prop('disabled', true);
}
});
});

0 comments on commit 8e16a79

Please sign in to comment.