Show reset button only if one-click filtering is actually used

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2017-09-23 13:55:09 +02:00
parent f1a5ec8953
commit b0e16975e4
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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(); } );
} );