1
0
Fork 0
forked from forgejo/forgejo

update install page ui

This commit is contained in:
FuXiaoHei 2014-03-27 20:39:18 +08:00
parent ce679cce52
commit c796ed3849
2 changed files with 171 additions and 31 deletions

View file

@ -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);