diff --git a/module/story/view/batchedit.html.php b/module/story/view/batchedit.html.php index 7dceb1f76f..58896b7d98 100644 --- a/module/story/view/batchedit.html.php +++ b/module/story/view/batchedit.html.php @@ -38,20 +38,20 @@ foreach(explode(',', $showFields) as $field) idAB;?> - '>story->branch;?> + '>story->branch;?> - story->module;?> + story->module;?> '>story->planAB;?> story->title;?> - '> story->estimateAB;?> - '> priAB;?> - '> story->assignedTo;?> - '> story->source;?> + '> story->estimateAB;?> + '> priAB;?> + '> story->assignedTo;?> + '> story->source;?> story->status;?> - '> story->stageAB;?> - '>story->closedBy;?> - '> story->closedReason;?> - '>story->keywords;?> + '> story->stageAB;?> + '>story->closedBy;?> + '> story->closedReason;?> + '>story->keywords;?> diff --git a/module/task/js/common.js b/module/task/js/common.js index 9a6706bcc8..e552c3dc0a 100644 --- a/module/task/js/common.js +++ b/module/task/js/common.js @@ -15,7 +15,7 @@ function checkLeft() } } -$('.btn-move-up, .btn-move-down').click(function() +$(document).on('click', '.btn-move-up, .btn-move-down', function() { var $this = $(this); if($this.hasClass('btn-move-up')) @@ -59,7 +59,11 @@ $('#modalTeam .btn').click(function() }) }); -$('a.btn-move-add').on('click', function () { - var html = $("#modalTeam table.table tr").eq(-2).html(); - $("#modalTeam table.table tr:last").before('' + html + ''); +$(document).on('click', 'a.btn-move-add', function() +{ + var html = $("#modalTeam table.table tbody tr:last").html(); + $("#modalTeam table.table tbody tr:last").after('' + html + ''); + $("#modalTeam table.table tbody tr:last").prev().find('.btn-move-down').removeClass('disabled').removeAttr('disabled'); + + adjustSortBtn(); }); diff --git a/module/task/js/create.js b/module/task/js/create.js index 71e6c125b5..e74f02710e 100644 --- a/module/task/js/create.js +++ b/module/task/js/create.js @@ -192,7 +192,7 @@ $(document).ready(function() $('#estimate').attr('readonly', false); } }); - $('#modalTeam').on('show', function() + $("[href='#modalTeam']").click(function() { adjustSortBtn(); }); diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php index aacb92d9e9..7f6530d390 100644 --- a/module/task/view/create.html.php +++ b/module/task/view/create.html.php @@ -181,27 +181,29 @@ diff --git a/module/task/view/edit.html.php b/module/task/view/edit.html.php index 3cd057ab22..b60006735c 100644 --- a/module/task/view/edit.html.php +++ b/module/task/view/edit.html.php @@ -219,46 +219,50 @@