mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 02:09:58 +01:00
Add "Reset Sorting" button to remaining pages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -65,10 +65,6 @@ function datetime(date) {
|
||||
|
||||
$(document).ready(function() {
|
||||
$("#btnAdd").on("click", addGroup);
|
||||
$("#resetButton").on("click", function() {
|
||||
table.order([[0, "asc"]]).draw();
|
||||
$("#resetButton").hide();
|
||||
});
|
||||
|
||||
table = $("#groupsTable").DataTable({
|
||||
ajax: {
|
||||
@@ -173,6 +169,10 @@ $(document).ready(function() {
|
||||
$("#resetButton").hide();
|
||||
}
|
||||
});
|
||||
$("#resetButton").on("click", function() {
|
||||
table.order([[0, "asc"]]).draw();
|
||||
$("#resetButton").hide();
|
||||
});
|
||||
});
|
||||
|
||||
function addGroup() {
|
||||
|
||||
Reference in New Issue
Block a user