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:
parent
a72779d5d3
commit
b8a653901c
@ -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> ·
|
<li><a href="#sortBy=name" data-option-value="name">Name</a></li> ·
|
||||||
<li><a href="#sortBy=date" data-option-value="date">Next Episode</a></li> ·
|
<li><a href="#sortBy=date" data-option-value="date">Next Episode</a></li> ·
|
||||||
<li><a href="#sortBy=network" data-option-value="network">Network</a></li> ·
|
<li><a href="#sortBy=network" data-option-value="network">Network</a></li> ·
|
||||||
<li><a href="#sortBy=progress" data-option-value="progress">Progress</a></li>
|
<li><a href="#sortBy=progress" data-option-value="progress">Progress</a></li> ·
|
||||||
</ul>
|
</ul>
|
||||||
|
<a style="display: inline-block; float: right;" class="clearfix" href="javascript:invertSort();">Flip</a>
|
||||||
#end if
|
#end if
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user