From 80207a938cd0b75ba5ce2ab60e52aefec011d84d Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 15 Apr 2025 15:46:37 +0800 Subject: [PATCH] * [refac bug #61496] Adjust disabled style. --- module/programplan/css/create.ui.css | 4 +++- module/programplan/js/create.ui.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/programplan/css/create.ui.css b/module/programplan/css/create.ui.css index 61bac4585e..664dbfea77 100644 --- a/module/programplan/css/create.ui.css +++ b/module/programplan/css/create.ui.css @@ -3,4 +3,6 @@ menu .panel-actions {width: auto;} td .check-list {flex-direction:row;} th.form-batch-head[data-name=ACTIONS]{width:120px;} tr.disabled td[data-name="enabled"] .switch label{filter: unset;} -.max-w-100px {max-width: 100px; overflow: hidden;} \ No newline at end of file +.max-w-100px {max-width: 100px; overflow: hidden;} +.disabled, .disabled * {pointer-events: none; opacity: 0.9;} +.disabled [data-name="enabled"] {pointer-events: all; cursor: pointer !important;} \ No newline at end of file diff --git a/module/programplan/js/create.ui.js b/module/programplan/js/create.ui.js index 62dbe48084..4656c3e16d 100644 --- a/module/programplan/js/create.ui.js +++ b/module/programplan/js/create.ui.js @@ -223,7 +223,7 @@ window.handleRenderRow = function($row, index, data) let items = [{text: '', value: ''}]; let disabled = level > 0 ? true : false; - if(typeof data != 'undefined' && typeof data.attribute != 'undefined') + if(typeof data != 'undefined' && typeof data.attribute != 'undefined' && !disabled) { const attribute = data.attribute; for(let point in ipdStagePoint[attribute])