diff options
author | Guilherme Salazar <gmesalazar@gmail.com> | 2016-09-27 00:36:11 +0300 |
---|---|---|
committer | Guilherme Salazar <gmesalazar@gmail.com> | 2016-10-28 19:01:36 +0300 |
commit | 32913b74b836c7b689e681a030de00da0552954a (patch) | |
tree | 3e13e52f35e8236049c8413e695a47bae8f3a671 /app/assets/javascripts/issue.js | |
parent | 4fd015183cdb280083384c69261c2ab5d475a54b (diff) |
add "x of y tasks completed" on issuable
fix issues pointed out in !6527
add task completion status feature to CHANGELOG
Diffstat (limited to 'app/assets/javascripts/issue.js')
-rw-r--r-- | app/assets/javascripts/issue.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/issue.js b/app/assets/javascripts/issue.js index e83dae2bb3c..67ace697936 100644 --- a/app/assets/javascripts/issue.js +++ b/app/assets/javascripts/issue.js @@ -95,7 +95,11 @@ return $.ajax({ type: 'PATCH', url: $('form.js-issuable-update').attr('action'), - data: patchData + data: patchData, + success: function(issue) { + document.querySelector('#task_status').innerText = issue.task_status; + document.querySelector('#task_status_short').innerText = issue.task_status_short; + } }); // TODO (rspeicher): Make the issue description inline-editable like a note so // that we can re-use its form here |