lang->story->subdivide : $this->lang->story->batchCreate;?>
@@ -47,23 +49,23 @@| '>product->branch;?> | +branchBox'>product->branch;?> | '>story->module;?> | -'>story->plan;?> | +planBox'>story->plan;?> | type == 'kanban'):?>kanbancard->region;?> | kanbancard->lane;?> | story->title;?> | -'>story->spec;?> | -'>story->source;?> | -'>story->sourceNote;?> | -'>story->verify;?> | +specBox'>story->spec;?> | +sourceBox'>story->source;?> | +sourceBox'>story->sourceNote;?> | +verifyBox'>story->verify;?> | story->category;?> | -'>story->pri;?> | -'>story->estimate;?> | -' style="width: 200px !important">story->reviewedBy;?> | -'>story->keywords;?> | +priBox'>story->pri;?> | +estimateBox'>story->estimate;?> | +reviewBox'>story->reviewedBy;?> | +keywordsBox'>story->keywords;?> | story->getFlowExtendFields(); foreach($extendFields as $extendField) @@ -76,9 +78,9 @@
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| '> | +branchBox'> | - | ' style='overflow:visible'> | +planBox' style='overflow:visible'> | type == 'kanban'):?>@@ -100,20 +102,20 @@ | -'> | -'> | -'> | -'> | +specBox'> | +sourceBox'> | +sourceBox'> | +verifyBox'> | story->categoryList, 'feature', "class='form-control chosen'");?> | -' style='overflow:visible'> | -'> | -'> + | priBox' style='overflow:visible'> | +estimateBox'> | + reviewBox'>
story->ditto;?>
|
- '> | +keywordsBox'> | loadModel('flow'); foreach($extendFields as $extendField) echo "control == 'select' or $extendField->control == 'multi-select') ? " style='overflow:visible'" : '') . ">" . $this->flow->getFieldControl($extendField, '', $extendField->field . '[$id]') . " | "; @@ -144,6 +146,7 @@ $(function() idEnd: , rowCreator: function($row, index) { + itemIndex = index; // Set the index for the add element operation $row.find('select.chosen,select.picker-select').each(function() { var $select = $(this); @@ -162,6 +165,26 @@ $(function() { $row.find('.input-story-title').val(storyTitle).after(''); } + + /* Implement a custom form without feeling refresh. */ + var fieldList = ',' + showFields + ','; + $('#formSettingForm > .checkboxes > .checkbox-primary > input').each(function() + { + var field = ',' + $(this).val() + ','; + var $field = $row.find('[name^=' + $(this).val() + ']'); + var required = ',' + requiredFields + ','; + var $fieldBox = $row.find('.' + $(this).val() + 'Box' ); + if(fieldList.indexOf(field) >= 0 || required.indexOf(field) >= 0) + { + $fieldBox.removeClass('hidden'); + $field.removeAttr('disabled'); + } + else if(!$fieldBox.hasClass('hidden')) + { + $fieldBox.addClass('hidden'); + $field.attr('disabled', true); + } + }) } }); diff --git a/module/story/view/batchedit.html.php b/module/story/view/batchedit.html.php index bd6870752e..b0050c2928 100644 --- a/module/story/view/batchedit.html.php +++ b/module/story/view/batchedit.html.php @@ -15,6 +15,7 @@ app->tab);?> +