diff --git a/module/execution/js/kanban.js b/module/execution/js/kanban.js index 3e8b095cf7..2e3d2f7363 100644 --- a/module/execution/js/kanban.js +++ b/module/execution/js/kanban.js @@ -761,14 +761,15 @@ function renderCount($count, count, column) { if(groupBy == 'story' && column.type == 'story') { - var orderButton = '' + var orderButton = '' + + "" + + '' + '
'; - $count.prev().replaceWith(orderButton); + $count.parent().next().html(orderButton); + $count.parent().next().addClass('createButton'); $count.remove(); return; } @@ -1484,6 +1485,8 @@ $(function() if($.cookie('isFullScreen') == 1) $.cookie('isFullScreen', 0); + changeOrder = false; + window.kanbanScaleSize = +$.zui.store.get('executionKanbanScaleSize', 1); $('#kanbanScaleSize').text(window.kanbanScaleSize); $('#kanbanScaleControl .btn[data-type="+"]').attr('disabled', window.kanbanScaleSize >= 4 ? 'disabled' : null); @@ -1838,6 +1841,7 @@ function searchCards(value, order = '') { rdSearchValue = value; orderBy = order == '' ? orderBy : order; + if(order != '') changeOrder = true; $.get(createLink('execution', 'ajaxUpdateKanban', "executionID=" + executionID + "&entertime=0&browseType=" + browseType + "&groupBy=" + groupBy + '&from=RD&searchValue=' + rdSearchValue + '&orderBy=' + orderBy), function(data) { lastUpdateData = data; diff --git a/module/execution/js/taskkanban.js b/module/execution/js/taskkanban.js index eeb75b21bf..5ad57d972c 100644 --- a/module/execution/js/taskkanban.js +++ b/module/execution/js/taskkanban.js @@ -341,15 +341,15 @@ function renderColumnCount($count, count, col) { if(groupBy == 'story' && col.type == 'story') { - var orderButton = '' + var orderButton = '' + + "" + + '' + ''; - $count.siblings('.storyColumn').remove(); - $count.prev().replaceWith(orderButton); + $count.parent().next().html(orderButton); + $count.parent().next().addClass('createButton'); $count.hide(); return; } @@ -1227,6 +1227,7 @@ $(function() $('#kanbanScaleControl .btn[data-type="+"]').attr('disabled', window.kanbanScaleSize >= 4 ? 'disabled' : null); $('#kanbanScaleControl .btn[data-type="-"]').attr('disabled', window.kanbanScaleSize <= 1 ? 'disabled' : null); + changeOrder = false; /* Common options */ var commonOptions = { @@ -1484,6 +1485,7 @@ function searchCards(value, order = '') { searchValue = value; orderBy = order == '' ? orderBy : order; + if(order != '') changeOrder = true; $.get(createLink('execution', 'ajaxUpdateKanban', "executionID=" + executionID + "&entertime=0&browseType=" + browseType + "&groupBy=" + groupBy + '&from=execution&searchValue=' + value + '&orderBy=' + orderBy), function(data) { lastUpdateData = data; diff --git a/module/kanban/model.php b/module/kanban/model.php index 1dfdda1111..020e6ab7d9 100755 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -1605,7 +1605,7 @@ class kanbanModel extends model { $columnData[0]['id'] = 0; $columnData[0]['type'] = 'story'; - $columnData[0]['name'] = zget($this->lang->kanban->orderList, $orderBy, ''); + $columnData[0]['name'] = $this->lang->SRCommon; $columnData[0]['color'] = '#333'; $columnData[0]['limit'] = '-1'; $columnData[0]['laneType'] = $browseType;