From f81dfe1b0b6cfac6a0efb0da456a9c33109af528 Mon Sep 17 00:00:00 2001 From: jekkos Date: Sat, 11 May 2024 17:54:10 +0200 Subject: [PATCH] Fix permissions checkbox state (#3993) --- app/Views/employees/form.php | 4 ++-- app/Views/partial/print_receipt.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Views/employees/form.php b/app/Views/employees/form.php index 9d9d1a677..1270b5505 100644 --- a/app/Views/employees/form.php +++ b/app/Views/employees/form.php @@ -118,7 +118,7 @@ { ?>
  • - module_id", $module->module_id, $module->grant == 1, "class=\'module\'") ?> + module_id", $module->module_id, $module->grant == 1, "class='module'") ?> module_id", [ 'home' => lang('Module.home'), @@ -126,7 +126,7 @@ 'both' => lang('Module.both') ], $module->menu_group, - "class=\'module\'" + "class='module'" ) ?> module_id") ?>: diff --git a/app/Views/partial/print_receipt.php b/app/Views/partial/print_receipt.php index 66cce0555..093d3af8a 100644 --- a/app/Views/partial/print_receipt.php +++ b/app/Views/partial/print_receipt.php @@ -73,7 +73,7 @@ function printdoc() if($print_after_sale) { ?> - $(window).load(function() + $(window).on('load', (function() { // executes when complete page is fully loaded, including all frames, objects and images printdoc();