diff --git a/module/execution/control.php b/module/execution/control.php index d626d48c37..a8c683cb5a 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1333,11 +1333,6 @@ class execution extends control $executionID = $execution->id; $burnBy = $this->cookie->burnBy ? $this->cookie->burnBy : $burnBy; - /* Header and position. */ - $title = $execution->name . $this->lang->colon . $this->lang->execution->burn; - $position[] = html::a($this->createLink('execution', 'browse', "executionID=$executionID"), $execution->name); - $position[] = $this->lang->execution->burn; - /* Get date list. */ if(((strpos('closed,suspended', $execution->status) === false and helper::today() > $execution->end) or ($execution->status == 'closed' and substr($execution->closedDate, 0, 10) > $execution->end) @@ -1353,12 +1348,12 @@ class execution extends control $executionEnd = strpos($type, 'withdelay') !== false ? $execution->end : ''; $chartData = $this->execution->buildBurnData($executionID, $dateList, $burnBy, $executionEnd); - $dayList = array_fill(1, floor((int)$execution->days / $this->config->execution->maxBurnDay) + 5, ''); + $allDateList = date::getDateList($execution->begin, $endDate, 'Y-m-d', $type, $this->config->execution->weekend); + $dayList = array_fill(1, floor(count($allDateList) / $this->config->execution->maxBurnDay) + 5, ''); foreach($dayList as $key => $val) $dayList[$key] = $this->lang->execution->interval . ($key + 1) . $this->lang->day; /* Assign. */ - $this->view->title = $title; - $this->view->position = $position; + $this->view->title = $execution->name . $this->lang->colon . $this->lang->execution->burn; $this->view->tabID = 'burn'; $this->view->burnBy = $burnBy; $this->view->executionID = $executionID; @@ -1494,7 +1489,7 @@ class execution extends control if($_POST) { $this->execution->fixFirst($executionID); - return print(js::reload('parent.parent')); + return $this->send(array('result' => 'success', 'load' => true, 'closeModal' => true)); } $execution = $this->execution->getById($executionID); diff --git a/module/execution/css/burn.ui.css b/module/execution/css/burn.ui.css index 3f579cbb7f..d1c7a3a338 100644 --- a/module/execution/css/burn.ui.css +++ b/module/execution/css/burn.ui.css @@ -1,4 +1,7 @@ #mainContent h2 {font-size: 16px; font-weight: 600} #burnYUnit {position: absolute; color: #CBD0DB; top: 85px; left: 185px;} #burnXUnit {position: absolute; color: #CBD0DB; bottom: 70px; right: 165px;} -#featureBar .btn .icon {color: #fff !important} +#featureBar .btn .icon {color: #fff !important} +.burnByBox {width: 150px;} +.intervalBox {width: 100px;} +.text-gray {--tw-text-opacity: 1; color: rgba(var(--color-gray-500-rgb),var(--tw-text-opacity)) !important;} diff --git a/module/execution/js/burn.ui.js b/module/execution/js/burn.ui.js index c442d82960..175730be9c 100644 --- a/module/execution/js/burn.ui.js +++ b/module/execution/js/burn.ui.js @@ -8,3 +8,16 @@ window.randTipInfo = function(rowDatas) }); return tipHtml; } + +$(document).on('change', '#burnBy', function() +{ + $.cookie.set('burnBy', $(this).val(), {expires:config.cookieLife, path:config.webRoot}); + + let interval = typeof($('#interval').val()) == 'undefined' ? 0 : $('#interval').val() ; + loadPage($.createLink('execution', 'burn', 'executionID=' + executionID + '&type=' + type + '&interval=' + interval + '&burnBy=' + $(this).val())); +}); + +$(document).on('change', '#interval', function() +{ + loadPage($.createLink('execution', 'burn', 'executionID=' + executionID + '&type=' + type + '&interval=' + $(this).val())); +}); diff --git a/module/execution/lang/de.php b/module/execution/lang/de.php index 67fcaa1f32..b43454f404 100644 --- a/module/execution/lang/de.php +++ b/module/execution/lang/de.php @@ -353,7 +353,7 @@ $lang->execution->timeSummary = '