mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Show reset button only if one-click filtering is actually used
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -189,11 +189,11 @@ $(document).ready(function() {
|
||||
"initComplete": function () {
|
||||
var api = this.api();
|
||||
// Query type IPv4 / IPv6
|
||||
api.$('td:eq(1)').click( function () { api.search( this.innerHTML ).draw(); } );
|
||||
api.$('td:eq(1)').click( function () { api.search( this.innerHTML ).draw(); $('#resetButton').show(); } );
|
||||
// Domain
|
||||
api.$('td:eq(2)').click( function () { api.search( this.innerHTML ).draw(); } );
|
||||
api.$('td:eq(2)').click( function () { api.search( this.innerHTML ).draw(); $('#resetButton').show(); } );
|
||||
// Client
|
||||
api.$('td:eq(3)').click( function () { api.search( this.innerHTML ).draw(); } );
|
||||
api.$('td:eq(3)').click( function () { api.search( this.innerHTML ).draw(); $('#resetButton').show(); } );
|
||||
}
|
||||
});
|
||||
|
||||
@@ -209,7 +209,7 @@ $(document).ready(function() {
|
||||
}
|
||||
} );
|
||||
|
||||
$('#resetButton').click( function () { tableApi.search("").draw(); } );
|
||||
$('#resetButton').click( function () { tableApi.search("").draw(); $('#resetButton').hide(); } );
|
||||
} );
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user