diff options
author | Simon Knox <psimyn@gmail.com> | 2017-02-08 12:23:45 +0300 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-02-08 12:23:45 +0300 |
commit | 766d011b461d11dd0a6fb23b691f6c779a2b0b2f (patch) | |
tree | 29e28310ef98e1827a0ee27df591c3ba15d8b322 /app/assets/javascripts/issue.js | |
parent | d3e34cd165fa5a8f534d7acec7df4c8bd6392eae (diff) |
notes use new task_list, and PATCH instead of POST
use data attribute for submit url
optional onSuccess
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 6c6dde1b3f0..fd9b3cb833d 100644 --- a/app/assets/javascripts/issue.js +++ b/app/assets/javascripts/issue.js @@ -14,7 +14,11 @@ require('./task_list'); if ($('a.btn-close').length) { this.taskList = new gl.TaskList({ dataType: 'issue', - selector: '.detail-page-description' + selector: '.detail-page-description', + onSuccess: (result) => { + document.querySelector('#task_status').innerText = result.task_status; + document.querySelector('#task_status_short').innerText = result.task_status_short; + } }); this.initIssueBtnEventListeners(); } |