clean up the sorting option names. add a way to see which filter/sort is currently applied.

This commit is contained in:
Drewster727 2016-03-27 21:41:26 -05:00
commit 63e4e29051
2 changed files with 17 additions and 11 deletions

View file

@ -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) {