fixed reset filter button

This commit is contained in:
Derek Macias 2016-01-25 08:59:46 -07:00
parent 9bc076878b
commit 82b46b2f7c
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ Title="Nerd Pack"
</tbody> </tbody>
</table> </table>
<input onclick="packageQuery(1)" value="Check for Updates" type="button"><button class="reset" type="button" title="reset filters">Reset Filters</button> <input onclick="packageQuery(1)" value="Check for Updates" type="button"><input class="reset" type="button" title="reset filters" value="Reset Filters">
: <input id="btnApply" type="button" value="Apply"><input type="button" value="Done" onClick="done()"> : <input id="btnApply" type="button" value="Apply"><input type="button" value="Done" onClick="done()">
<input type="hidden" name="#file" value="NerdPack/NerdPack.cfg"> <input type="hidden" name="#file" value="NerdPack/NerdPack.cfg">
</form> </form>
@ -35,4 +35,4 @@ Title="Nerd Pack"
<script type="text/javascript" src="/plugins/tablesorter/js/jquery.tablesorter.combined.min.js"></script> <script type="text/javascript" src="/plugins/tablesorter/js/jquery.tablesorter.combined.min.js"></script>
<script type="text/javascript" src="/plugins/tablesorter/js/parsers/parser-metric.min.js"></script> <script type="text/javascript" src="/plugins/tablesorter/js/parsers/parser-metric.min.js"></script>
<script type="text/javascript" src="/webGui/javascript/jquery.switchbutton.js"></script> <script type="text/javascript" src="/webGui/javascript/jquery.switchbutton.js"></script>
<script type="text/javascript" src="/plugins/NerdPack/js/jquery.NerdPack.js"></script> <script type="text/javascript" src="/plugins/NerdPack/js/jquery.NerdPack.js"></script>

View File

@ -1,14 +1,14 @@
$(function(){ $(function(){
// tablesorter options // tablesorter options
$("#tblPackages").tablesorter({ $("#tblPackages").tablesorter({
sortList: [[0,1]], sortList: [[0,0]],
widgets: ["saveSort", "filter", "stickyHeaders"], widgets: ["saveSort", "filter", "stickyHeaders"],
widgetOptions: { widgetOptions: {
stickyHeaders_filteredToTop: true, stickyHeaders_filteredToTop: true,
filter_hideEmpty: true, filter_hideEmpty: true,
filter_liveSearch: true, filter_liveSearch: true,
filter_saveFilters: true, filter_saveFilters: true,
filter_reset: "button.reset", filter_reset: ".reset",
filter_functions: { filter_functions: {
".filter-version": true, ".filter-version": true,
".filter-downloaded": true, ".filter-downloaded": true,
@ -137,4 +137,4 @@ function checkDepends() {
$("#python").switchButton({checked: true}); $("#python").switchButton({checked: true});
$("#python", ".pkgvalue").val("yes"); $("#python", ".pkgvalue").val("yes");
} }
} }