diff --git a/module/custom/control.php b/module/custom/control.php index 1120499dfb..648c51b678 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -361,9 +361,7 @@ class custom extends control { /* Load module and get the data from the post. */ $this->loadModel('setting'); - $data = fixer::input('post') - ->setIF(!isset($_POST['efficiency']), 'efficiency', 1) - ->get(); + $data = fixer::input('post')->get(); /* Judgment of required items. */ if(($unit != $_POST['hourPoint']) and empty($_POST['scaleFactor'])) diff --git a/module/custom/js/estimate.js b/module/custom/js/estimate.js index e855a3efb7..445f72e2e1 100644 --- a/module/custom/js/estimate.js +++ b/module/custom/js/estimate.js @@ -18,13 +18,13 @@ $(document).ready(function() $('#scaleFactor + span').text(workingHours); $('#efficiency + span').text(workingHours); $('#efficiency').val("1"); - $('#efficiency').attr('disabled', 'diabled'); + $('.efficiency').addClass('hidden'); } if($(this).val() == 1 || $(this).val() == 2) { $('#efficiency').val(''); - $('#efficiency').removeAttr('disabled'); + $('.efficiency').removeClass('hidden'); if($(this).val() == 1) { $('#scaleFactor + span').text(storyPoint); diff --git a/module/custom/view/estimate.html.php b/module/custom/view/estimate.html.php index f1e2daa8ad..de13cf7456 100644 --- a/module/custom/view/estimate.html.php +++ b/module/custom/view/estimate.html.php @@ -37,13 +37,13 @@ $lang->custom->system[] = 'estimate';