diff --git a/toroid.html b/toroid.html index 509c2d1..fb4148f 100644 --- a/toroid.html +++ b/toroid.html @@ -151,7 +151,6 @@
Change history:
@@ -1933,7 +1932,7 @@ function setMode() { var modes = document.getElementsByName("modes"); - t_mode = modes[0].value; + controller.t_mode = modes[0].value; l_inductors = { sort_order : { @@ -1973,7 +1972,7 @@ } var l_mat_selected; - if(t_mode == "Suppressor") { + if(controller.t_mode == "Suppressor") { l_mat_selected = l_suppressors; } else { // Inductors and Transformers should use the inductor material list: l_mat_selected = l_inductors;