From 59876b2256315f4541542e78d5901ccb61ff4c2f Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Tue, 26 Jan 2021 14:30:15 +0800 Subject: [PATCH] * Add comment. --- module/custom/control.php | 2 -- module/custom/js/estimate.js | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/custom/control.php b/module/custom/control.php index 9c8b9532fa..7d1312a0ca 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -363,8 +363,6 @@ class custom extends control $this->loadModel('setting'); $data = fixer::input('post')->get(); - /* Judgment of required items. */ - $this->setting->setItem('system.custom.hourPoint', $data->hourPoint); $this->setting->setItem('system.custom.scaleFactor', $data->scaleFactor); $this->setting->setItem('system.custom.cost', $data->cost); diff --git a/module/custom/js/estimate.js b/module/custom/js/estimate.js index d36d2661c9..d130368793 100644 --- a/module/custom/js/estimate.js +++ b/module/custom/js/estimate.js @@ -52,6 +52,8 @@ $(document).ready(function() function setScaleFactor() { var scaleFactor = $('#convertFactor').val(); + + /* Judgment of required items. */ if(!scaleFactor) { alert(notempty);