Select first value in drop down upon enabling expert mode

10.5.x-maintenance
Sean M 2018-09-13 20:01:03 -04:00
parent 3a94d0056f
commit 9c4bf73101
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ TABS.firmware_flasher.initialize = function (callback) {
buildTypesToShow.forEach((build, index) => {
buildType_e.append($("<option value='{0}' selected>{1}</option>".format(index, build.tag ? i18n.getMessage(build.tag) : build.title)))
});
$('select[name="build_type"]').val($('select[name="build_type"] option:first').val());
}
function showOrHideBuildTypes() {