diff options
author | vz <veni0@qq.com> | 2017-01-09 17:16:10 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-09 17:16:10 +0800 |
commit | 19570f2d43a31ecdb3b33761df7712cbe327e5c1 (patch) | |
tree | d85df6ba9dd2197a36596da129067f9d6fd4f2ca /public/js | |
parent | 973282dae2ba5153470ea96b022066b72c53ea62 (diff) | |
download | gitea-19570f2d43a31ecdb3b33761df7712cbe327e5c1.tar.gz gitea-19570f2d43a31ecdb3b33761df7712cbe327e5c1.zip |
Fix install.tmpl input default value (#611)
* Fix install.tmpl input default value
* Update db_user to gitea
* Add when INSTALL_LOCK = false
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js index 590fafa8d8..61b774b1fe 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -209,6 +209,12 @@ function initInstall() { return; } + if ($('#db_host').val()=="") { + $('#db_host').val("127.0.0.1:3306"); + $('#db_user').val("gitea"); + $('#db_name').val("gitea"); + } + // Database type change detection. $("#db_type").change(function () { var sqliteDefault = 'data/gitea.db'; |