From 908f2924ceacc89bd75c5b89f68a653a16dcfbec Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 11 Nov 2015 16:19:28 -0500 Subject: [PATCH] fix #1824 and fix #1917 --- README.md | 2 +- gogs.go | 2 +- public/js/gogs.js | 11 +++++++++++ templates/.VERSION | 2 +- templates/repo/issue/comment_tab.tmpl | 2 +- templates/repo/issue/view_content.tmpl | 4 ++-- 6 files changed, 17 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 25b84d8eb..25497f428 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra ![](public/img/gogs-large-resize.png) -##### Current version: 0.7.4 Beta +##### Current version: 0.7.5 Beta diff --git a/gogs.go b/gogs.go index d56dd2c41..c0662952a 100644 --- a/gogs.go +++ b/gogs.go @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.7.4.1110 Beta" +const APP_VER = "0.7.5.1111 Beta" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/public/js/gogs.js b/public/js/gogs.js index f297191a9..68e286bc8 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -21,6 +21,8 @@ function initCommentPreviewTab($form) { } ); }); + + buttonsClickOnEnter(); } function initCommentForm() { @@ -537,6 +539,13 @@ function initAdmin() { } } +function buttonsClickOnEnter() { + $('.ui.button').keypress(function(e){ + if (e.keyCode == 13) + $(this).click(); + }); +} + $(document).ready(function () { csrf = $('meta[name=_csrf]').attr("content"); suburl = $('meta[name=_suburl]').attr("content"); @@ -670,6 +679,8 @@ $(document).ready(function () { $($(this).data('modal')).modal('show'); }); + buttonsClickOnEnter(); + initCommentForm(); initInstall(); initRepository(); diff --git a/templates/.VERSION b/templates/.VERSION index ba0a48033..27f1c9ed1 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.7.4.1110 Beta \ No newline at end of file +0.7.5.1111 Beta \ No newline at end of file diff --git a/templates/repo/issue/comment_tab.tmpl b/templates/repo/issue/comment_tab.tmpl index a2b5bea27..5ffe1e045 100644 --- a/templates/repo/issue/comment_tab.tmpl +++ b/templates/repo/issue/comment_tab.tmpl @@ -4,7 +4,7 @@ {{.i18n.Tr "repo.release.preview"}}
- +
{{.i18n.Tr "repo.release.loading"}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 7c413fb3e..f838072c7 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -210,12 +210,12 @@ {{.i18n.Tr "repo.issues.reopen_issue"}}
{{else}} -
+
{{.i18n.Tr "repo.issues.close_issue"}}
{{end}} {{end}} -