Skip to content

Node.js based forum software built for the modern web

fixed cold load database switcher for installer

psychobunnya93e52aadec0
diff --git a/public/src/installer/install.js b/public/src/installer/install.js
index 2407c95a02..8d9f8c5c90 100644
--- a/public/src/installer/install.js
+++ b/public/src/installer/install.js
@@ -22,7 +22,7 @@ $('document').ready(function() {
activate($(this).attr('name'), $(this));
});
- activate($('[name="database"]').val(), $('[name="database"]'));
+ activate('database', $('[name="database"]'));
}
function activate(type, el) {
@@ -67,6 +67,7 @@ $('document').ready(function() {
}
function switchDatabase(field) {
+ console.log(field);
$('#database-config').html($('[data-database="' + field + '"]').html());
}