From b3b85b9090a40f65d86c6edd90f67b169d7e6301 Mon Sep 17 00:00:00 2001 From: circlecrystalin Date: Tue, 20 Jan 2026 13:34:07 +0100 Subject: [PATCH] refactor: use const instead of var in Select All/Unselect All functions --- .../page/print_format_builder/print_format_builder.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frappe/printing/page/print_format_builder/print_format_builder.js b/frappe/printing/page/print_format_builder/print_format_builder.js index ff1c2c8c88..c651bc157c 100644 --- a/frappe/printing/page/print_format_builder/print_format_builder.js +++ b/frappe/printing/page/print_format_builder/print_format_builder.js @@ -709,8 +709,8 @@ frappe.PrintFormatBuilder = class PrintFormatBuilder { $body.find("input[type='checkbox']").each(function () { if (!$(this).prop("checked")) { $(this).prop("checked", true); - var fieldname = $(this).attr("data-fieldname"); - var input = get_width_input(fieldname); + const fieldname = $(this).attr("data-fieldname"); + const input = get_width_input(fieldname); input.prop("disabled", false); } }); @@ -722,8 +722,8 @@ frappe.PrintFormatBuilder = class PrintFormatBuilder { $body.find("input[type='checkbox']").each(function () { if ($(this).prop("checked")) { $(this).prop("checked", false); - var fieldname = $(this).attr("data-fieldname"); - var input = get_width_input(fieldname); + const fieldname = $(this).attr("data-fieldname"); + const input = get_width_input(fieldname); input.prop("disabled", true); input.val(""); }