From e30e856ea60408437cca8ad42061e1fb6e02ddd3 Mon Sep 17 00:00:00 2001 From: wangzemei Date: Fri, 30 Sep 2022 16:27:11 +0800 Subject: [PATCH 1/2] * fix bug 28244 --- www/js/my.full.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/js/my.full.js b/www/js/my.full.js index 3a52f53d2d..e8097e94ca 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -1351,6 +1351,10 @@ function handleKanbanWidthAttr () $(addAttrEle).closest('.width-radio-row').addClass('required'); $('#colWidth').attr('disabled',fluidBoard == 1); $('#minColWidth, #maxColWidth').attr('disabled',fluidBoard == 0); + $("#minColWidth, #maxColWidth").on('input', function(){ + $('#minColWidthLabel, #maxColWidthLabel').remove(); + $('#minColWidth, #maxColWidth').removeClass('has-error'); + }) $(document).on('change', "#mainContent input[name='fluidBoard']", function(e) { $('#colWidth').attr('disabled', e.target.value == 1); From 48efbc2d95c4f0e29b862308d5d0951635468b0d Mon Sep 17 00:00:00 2001 From: wangzemei Date: Sat, 8 Oct 2022 11:02:34 +0800 Subject: [PATCH 2/2] * optimize the format --- www/js/my.full.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/js/my.full.js b/www/js/my.full.js index e8097e94ca..34cc475891 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -1351,10 +1351,11 @@ function handleKanbanWidthAttr () $(addAttrEle).closest('.width-radio-row').addClass('required'); $('#colWidth').attr('disabled',fluidBoard == 1); $('#minColWidth, #maxColWidth').attr('disabled',fluidBoard == 0); - $("#minColWidth, #maxColWidth").on('input', function(){ + $("#minColWidth, #maxColWidth").on('input', function() + { $('#minColWidthLabel, #maxColWidthLabel').remove(); $('#minColWidth, #maxColWidth').removeClass('has-error'); - }) + }); $(document).on('change', "#mainContent input[name='fluidBoard']", function(e) { $('#colWidth').attr('disabled', e.target.value == 1); @@ -1373,5 +1374,5 @@ function handleKanbanWidthAttr () $('#colWidthLabel').remove(); $('#colWidth').removeClass('has-error'); } - }) + }); }