Skip to content

Commit

Permalink
fix: selection of filters with meta-characters
Browse files Browse the repository at this point in the history
(cherry picked from commit c23632e)
  • Loading branch information
krantheman authored and mergify[bot] committed Dec 12, 2023
1 parent 586ac61 commit d334b9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hrms/www/jobs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ $(() => {
const query_params = frappe.utils.get_query_params();
for (const filter in query_params) {
if (typeof query_params[filter] === "string") {
$("#" + query_params[filter]).prop("checked", true);
$("#" + $.escapeSelector(query_params[filter])).prop("checked", true);
} else {
for (const d of query_params[filter]) $("#" + d).prop("checked", true);
for (const d of query_params[filter])
$("#" + $.escapeSelector(d)).prop("checked", true);
}
}
$("input:checkbox").change(function () {
Expand Down

0 comments on commit d334b9d

Please sign in to comment.