diff options
Diffstat (limited to 'MLEB/Translate/resources/js/ext.translate.selecttoinput.js')
-rw-r--r-- | MLEB/Translate/resources/js/ext.translate.selecttoinput.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/MLEB/Translate/resources/js/ext.translate.selecttoinput.js b/MLEB/Translate/resources/js/ext.translate.selecttoinput.js index 71253bb4..a27fd903 100644 --- a/MLEB/Translate/resources/js/ext.translate.selecttoinput.js +++ b/MLEB/Translate/resources/js/ext.translate.selecttoinput.js @@ -3,14 +3,13 @@ $( function () { 'use strict'; var select = document.getElementById( selectid ), - target = document.getElementById( targetid ), - atxt; + target = document.getElementById( targetid ); if ( !target || !select ) { return; } - atxt = select.options[ select.selectedIndex ].value; + var atxt = select.options[ select.selectedIndex ].value; if ( !atxt ) { return; |