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:
DL6ER
2020-04-21 11:24:56 +02:00
parent 8c1503cac5
commit 8c82872f4a
+3 -4
View File
@@ -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();
}