summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-13 23:21:43 +0800
committerUnknwon <u@gogs.io>2015-08-13 23:21:43 +0800
commit1fb53067f478414302096d5d976a3db85df9e2eb (patch)
treeb1b8ba83989fe5edd346a26c6bd0068abbb4d533 /public/js
parent0ec7d1539b177dbe55f3c68691b0c9f8e35193a9 (diff)
downloadgitea-1fb53067f478414302096d5d976a3db85df9e2eb.tar.gz
gitea-1fb53067f478414302096d5d976a3db85df9e2eb.zip
finish close/reopen issue
Diffstat (limited to 'public/js')
-rw-r--r--public/js/gogs.js16
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')