diff --git a/module/task/js/common.js b/module/task/js/common.js index ac9ee1c578..9a6706bcc8 100644 --- a/module/task/js/common.js +++ b/module/task/js/common.js @@ -2,7 +2,7 @@ function checkLeft() { value = $("#left").val(); - if(isNaN(parseInt(value)) || value == 0) + if(isNaN(parseInt(value)) || value == 0) { if(confirm(confirmFinish)) { @@ -58,3 +58,8 @@ $('#modalTeam .btn').click(function() $('#estimate').val(time); }) }); + +$('a.btn-move-add').on('click', function () { + var html = $("#modalTeam table.table tr").eq(-2).html(); + $("#modalTeam table.table tr:last").before('' + html + ''); +}); diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php index 800896dde0..ef5ef4f9ea 100644 --- a/module/task/view/create.html.php +++ b/module/task/view/create.html.php @@ -23,7 +23,7 @@
- +
@@ -104,9 +104,9 @@ ?> @@ -190,7 +190,8 @@ task->hour;?> - diff --git a/module/task/view/edit.html.php b/module/task/view/edit.html.php index bf6e11e3bb..89b83fb61b 100644 --- a/module/task/view/edit.html.php +++ b/module/task/view/edit.html.php @@ -250,8 +250,9 @@
task->type;?> task->typeList, $task->type, "class='form-control chosen' onchange='setOwners(this.value)' required");?> - pri, "class='form-control chosen chosen-simple'");?> + pri, "class='form-control chosen chosen-simple'");?> - pri, "class='form-control' data-provide='labelSelector'");?> + pri, "class='form-control' data-provide='labelSelector'");?>
+ + - - + + +