mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 19:27:11 +02:00
fixed cold load database switcher for installer
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user