Browse Source

Fix wrong element id being used

adaptive-webui-19844
Thomas Piccirello 6 years ago
parent
commit
ece27b84cc
  1. 4
      src/webui/www/private/scripts/download.js

4
src/webui/www/private/scripts/download.js

@ -79,7 +79,7 @@ var changeCategorySelect = function(item) {
item.nextElementSibling.value = ""; item.nextElementSibling.value = "";
item.nextElementSibling.select(); item.nextElementSibling.select();
if ($('autotmm').selectedIndex == 1) if ($('autoTMM').selectedIndex == 1)
$('savepath').value = defaultSavePath; $('savepath').value = defaultSavePath;
} }
else { else {
@ -87,7 +87,7 @@ var changeCategorySelect = function(item) {
var text = item.options[item.selectedIndex].innerHTML; var text = item.options[item.selectedIndex].innerHTML;
item.nextElementSibling.value = text; item.nextElementSibling.value = text;
if ($('autotmm').selectedIndex == 1) { if ($('autoTMM').selectedIndex == 1) {
var categoryName = item.value; var categoryName = item.value;
var category = categories[categoryName]; var category = categories[categoryName];
var savePath = defaultSavePath; var savePath = defaultSavePath;

Loading…
Cancel
Save