Skip to content

Commit

Permalink
fix: use frm wrapper instead of global selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Dec 4, 2024
1 parent 15a314f commit 85c0700
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ frappe.ui.form.on("Purchase Reconciliation Tool", {
);

// move actions button next to filters
for (let button of $(".custom-actions .inner-group-button")) {
for (let button of frm.$wrapper.find(".custom-actions .inner-group-button")) {
if (button.innerText?.trim() != "Actions") continue;
$(".custom-button-group .inner-group-button").remove();
$(button).appendTo($(".custom-button-group"));
frm.$wrapper.find(".custom-button-group .inner-group-button").remove();
$(button).appendTo(frm.$wrapper.find(".custom-button-group"));
}
},

Expand Down

0 comments on commit 85c0700

Please sign in to comment.