mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
clean up the sorting option names. add a way to see which filter/sort is currently applied.
This commit is contained in:
parent
bee4d2dc4c
commit
63e4e29051
2 changed files with 17 additions and 11 deletions
|
@ -13,7 +13,7 @@ var mixItUpDefault = {
|
|||
animation: { enable: true },
|
||||
load: {
|
||||
filter: 'all',
|
||||
sort: 'default:asc'
|
||||
sort: 'requestorder:desc'
|
||||
},
|
||||
layout: {
|
||||
display: 'block'
|
||||
|
@ -149,6 +149,13 @@ $('#approveTVShows').click(function (e) {
|
|||
});
|
||||
});
|
||||
|
||||
// filtering/sorting
|
||||
$('.filter,.sort', '.dropdown-menu').click(function (e) {
|
||||
var $this = $(this);
|
||||
$('.fa-square', $this.parents('.dropdown-menu:first')).removeClass('fa-square').addClass('fa-square-o');
|
||||
$this.children('.fa').first().removeClass('fa-square-o').addClass('fa-square');
|
||||
});
|
||||
|
||||
|
||||
// Report Issue
|
||||
$(document).on("click", ".dropdownIssue", function (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue