fixed cold load database switcher for installer

This commit is contained in:
psychobunny
2015-04-21 19:54:33 -04:00
parent 20a1ab185c
commit a93e52aade

View File

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