diff --git a/tabs/configuration.js b/tabs/configuration.js index 03b9122e..c5fd6e28 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -177,7 +177,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) { var reverse = ""; if (semver.lt(CONFIG.apiVersion, "1.36.0")) { - MIXER_CONFIG.reverseMotorDir ? "_reversed" : ""; + reverse = MIXER_CONFIG.reverseMotorDir ? "_reversed" : ""; } $('.mixerPreview img').attr('src', './resources/motor_order/' + mixerList[mixer - 1].image + reverse + '.svg'); diff --git a/tabs/motors.js b/tabs/motors.js index d8eeba0d..99f0f509 100644 --- a/tabs/motors.js +++ b/tabs/motors.js @@ -167,8 +167,14 @@ TABS.motors.initialize = function (callback) { lines.attr('d', graphHelpers.line); } - function update_model(val) { - $('.mixerPreview img').attr('src', './resources/motor_order/' + mixerList[val - 1].image + '.svg'); + function update_model(mixer) { + var reverse = ""; + + if (semver.lt(CONFIG.apiVersion, "1.36.0")) { + reverse = MIXER_CONFIG.reverseMotorDir ? "_reversed" : ""; + } + + $('.mixerPreview img').attr('src', './resources/motor_order/' + mixerList[mixer - 1].image + reverse + '.svg'); } function process_html() {