From 2afdcdd5ccef26d8625f50904cc8924ffce34072 Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Fri, 7 Mar 2014 14:32:44 +0800 Subject: [PATCH 1/2] * code for task#1780. --- module/task/js/batchcreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/js/batchcreate.js b/module/task/js/batchcreate.js index c8cef32d66..246a601adb 100755 --- a/module/task/js/batchcreate.js +++ b/module/task/js/batchcreate.js @@ -7,7 +7,7 @@ function copyStoryTitle(num) { var storyTitle = $('#story' + num).find('option:selected').text(); startPosition = storyTitle.indexOf(':') + 1; - endPosition = storyTitle.lastIndexOf('('); + endPosition = storyTitle.lastIndexOf('['); storyTitle = storyTitle.substr(startPosition, endPosition - startPosition); $('#story' + num).parent().next().find('input:first').val(storyTitle); } From ec20a3cbff4b340615e451b40351f522fa02eb3e Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Mon, 10 Mar 2014 11:23:00 +0800 Subject: [PATCH 2/2] * fix accounts_id for chosen. --- module/project/view/managemembers.html.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module/project/view/managemembers.html.php b/module/project/view/managemembers.html.php index ae28289bb0..98f5c74fbd 100644 --- a/module/project/view/managemembers.html.php +++ b/module/project/view/managemembers.html.php @@ -25,7 +25,7 @@ team->days;?> team->hours;?> - + account])) continue; $realname = substr($users[$member->account], 2);?> account]);?> @@ -39,12 +39,12 @@ - + - account, "class='select-2' onchange='setRole(this.value, $i)'");?> + account, "class='select-2 chosen' onchange='setRole(this.value, $i)'");?> @@ -52,7 +52,7 @@ - + - + @@ -70,7 +70,7 @@ - +