From 04b34ce72420d817ed0a69b9829338bc66912026 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 29 Oct 2021 08:56:58 +0800 Subject: [PATCH] * Adjust code style. --- module/execution/js/kanban.js | 18 ++++++++---------- module/execution/view/kanban.html.php | 9 +++++++-- module/kanban/lang/zh-cn.php | 1 - 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/module/execution/js/kanban.js b/module/execution/js/kanban.js index 750ae9ed8c..fcfd0b6eb9 100644 --- a/module/execution/js/kanban.js +++ b/module/execution/js/kanban.js @@ -710,11 +710,8 @@ $(function() */ function restoreSelect() { - var type = $('#type').val(); - if(type == 'all') - { - $('.c-group').css("display","none"); - } + var type = $('#type').val(); + if(type == 'all') $('.c-group').css("display", "none"); } /** @@ -722,11 +719,11 @@ function restoreSelect() */ $('#type').change(function() { - var type = $('#type').val(); - $('.c-group').css("display",""); + var type = $('#type').val(); + $('.c-group').css("display", ""); if(type == 'all') { - $('.c-group').css("display","none"); + $('.c-group').css("display", "none"); } else { @@ -745,8 +742,9 @@ $('#type').change(function() $('.c-group').change(function() { $('.c-group').css("display",""); - var type = $('#type').val(); - var group = $('#group').val(); + + var type = $('#type').val(); + var group = $('#group').val(); link = createLink('execution', 'kanban', 'executionID=' + executionID + '&type=' + type + '&orderBy=order_asc' + '&group=' + group); location.href = link; }); diff --git a/module/execution/view/kanban.html.php b/module/execution/view/kanban.html.php index d77b0d1a9b..7d10874a4c 100644 --- a/module/execution/view/kanban.html.php +++ b/module/execution/view/kanban.html.php @@ -13,8 +13,13 @@