mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Add missing space in front of and on the dynamically generated button text.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -430,7 +430,6 @@ $(document).ready(function() {
|
||||
if(!event.ctrlKey) {
|
||||
resetColumnsFilters();
|
||||
}
|
||||
console.log(event.ctrlKey);
|
||||
api.column(1).search("^"+this.textContent+"$", true, true).draw();
|
||||
showResetButton("query type", this.textContent);
|
||||
}
|
||||
@@ -540,8 +539,8 @@ $(document).ready(function() {
|
||||
});
|
||||
});
|
||||
|
||||
function resetColumnsFilters(add_filters) {
|
||||
tableApi.columns()[0].forEach(index => {
|
||||
function resetColumnsFilters() {
|
||||
tableApi.columns()[0].forEach(function(index) {
|
||||
tableApi.column(index).search("", true, true);
|
||||
});
|
||||
$("#resetButton").text("");
|
||||
@@ -553,7 +552,7 @@ function showResetButton(type, param) {
|
||||
if(button.text().length === 0) {
|
||||
button.text("Clear filtering on "+type+" \""+param+"\"");
|
||||
} else {
|
||||
button.text(button.text() + "and "+type+" \""+param+"\"");
|
||||
button.text(button.text() + " and "+type+" \""+param+"\"");
|
||||
}
|
||||
button.show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user