From f51e671cb4ae3735da3ad2bc3f9d6269dad23da7 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Fri, 21 Jun 2024 13:35:07 +0530 Subject: [PATCH] Fixed calender not opening in refund request list --- .../admin/AdminOrderRefundRequestsController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRequestsController.php b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRequestsController.php index 5499e707a..e39b3b30b 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRequestsController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRequestsController.php @@ -549,9 +549,10 @@ class AdminOrderRefundRequestsController extends ModuleAdminController { parent::setMedia(); - $this->addJqueryUI('ui.tooltip', 'base', true); - - $this->addJs(_MODULE_DIR_.$this->module->name.'/views/js/admin/wk_refund_request.js'); - $this->addCSS(_MODULE_DIR_.$this->module->name.'/views/css/admin/wk_refund_request.css'); + if ($this->display == 'view') { + $this->addJqueryUI('ui.tooltip', 'base', true); + $this->addJs(_MODULE_DIR_.$this->module->name.'/views/js/admin/wk_refund_request.js'); + $this->addCSS(_MODULE_DIR_.$this->module->name.'/views/css/admin/wk_refund_request.css'); + } } }