diff options
author | Unknwon <u@gogs.io> | 2015-08-13 23:21:43 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-13 23:21:43 +0800 |
commit | 1fb53067f478414302096d5d976a3db85df9e2eb (patch) | |
tree | b1b8ba83989fe5edd346a26c6bd0068abbb4d533 /public/js | |
parent | 0ec7d1539b177dbe55f3c68691b0c9f8e35193a9 (diff) | |
download | gitea-1fb53067f478414302096d5d976a3db85df9e2eb.tar.gz gitea-1fb53067f478414302096d5d976a3db85df9e2eb.zip |
finish close/reopen issue
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index e971492673..53908a2eb2 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -203,6 +203,22 @@ function initRepository() { }); } + // Issues + if ($('.repository.view.issue').length > 0) { + var $status_btn = $('#status-button'); + $('#content').keyup(function () { + if ($(this).val().length == 0) { + $status_btn.text($status_btn.data('status')) + } else { + $status_btn.text($status_btn.data('status-and-comment')) + } + }); + $status_btn.click(function () { + $('#status').val($status_btn.data('status-val')); + $('#comment-form').submit(); + }) + } + // Pull request if ($('.repository.compare.pull').length > 0) { var $branch_dropdown = $('.choose.branch .dropdown') |