From a11b0f9a9f82920d45125ece68526783dc00221f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=94=E5=93=A5?= Date: Tue, 22 May 2018 10:50:14 +0800 Subject: [PATCH] * Task#4180. --- module/task/js/common.js | 7 ++++++- module/task/view/create.html.php | 9 +++++---- module/task/view/edit.html.php | 5 +++-- 3 files changed, 14 insertions(+), 7 deletions(-) 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'");?>
+ + - - + + +