1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Added a "flip" search order option to new GUI

HTML/CSS might need to be cleaned up (I hate CSS more than python), but
sorting/flipping is working on my machine.
This commit is contained in:
aaronkuchma 2014-10-07 00:07:07 -04:00
parent a72779d5d3
commit b8a653901c

View File

@ -109,6 +109,13 @@
}); });
}); });
sortFlipper = true;
function invertSort(){
sortFlipper = !sortFlipper;
\$('#container').isotope({sortAscending: sortFlipper});
\$('#container-anime').isotope({sortAscending: sortFlipper});
}
<!-- <!--
\$.tablesorter.addParser({ \$.tablesorter.addParser({
@ -267,13 +274,14 @@
</span> </span>
#if $layout == 'poster': #if $layout == 'poster':
<ul id="sort-by" class="option-set clearfix" data-option-key="sortBy"> <ul id="sort-by" class="option-set" data-option-key="sortBy">
Sort By: Sort By:
<li><a href="#sortBy=name" data-option-value="name">Name</a></li> &middot; <li><a href="#sortBy=name" data-option-value="name">Name</a></li> &middot;
<li><a href="#sortBy=date" data-option-value="date">Next Episode</a></li> &middot; <li><a href="#sortBy=date" data-option-value="date">Next Episode</a></li> &middot;
<li><a href="#sortBy=network" data-option-value="network">Network</a></li> &middot; <li><a href="#sortBy=network" data-option-value="network">Network</a></li> &middot;
<li><a href="#sortBy=progress" data-option-value="progress">Progress</a></li> <li><a href="#sortBy=progress" data-option-value="progress">Progress</a></li> &middot;
</ul> </ul>
&nbsp;<a style="display: inline-block; float: right;" class="clearfix" href="javascript:invertSort();">Flip</a>
#end if #end if
</div> </div>