summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-27 20:39:18 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-27 20:39:18 +0800
commitc796ed3849e3cd5b28cc8234edc71bbedafbc7da (patch)
treead3b22e897f79598f04def3e57494561fd7c7196 /public/js
parentce679cce52d8939fb75b4bad322738dc1d97bb4e (diff)
downloadgitea-c796ed3849e3cd5b28cc8234edc71bbedafbc7da.tar.gz
gitea-c796ed3849e3cd5b28cc8234edc71bbedafbc7da.zip
update install page ui
Diffstat (limited to 'public/js')
-rw-r--r--public/js/app.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 8b0e5cd62c..5bebeaf877 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -352,6 +352,24 @@ function initRepository() {
}());
}
+function initInstall(){
+ $('#install-database').on("change", function () {
+ var val = $(this).val();
+ if (val != "sqlite") {
+ $('.server-sql').show();
+ $('.sqlite-setting').addClass("hide");
+ if (val == "pgsql") {
+ $('.pgsql-setting').removeClass("hide");
+ } else {
+ $('.pgsql-setting').addClass("hide");
+ }
+ } else {
+ $('.server-sql').hide();
+ $('.sqlite-setting').removeClass("hide");
+ }
+ });
+}
+
(function ($) {
$(function () {
initCore();
@@ -365,5 +383,8 @@ function initRepository() {
if ($('.repo-nav').length) {
initRepository();
}
+ if($('#install-card').length){
+ initInstall();
+ }
});
})(jQuery);