app/assets/javascripts/autotolk/locales.js.coffee in autotolk-0.1.4 vs app/assets/javascripts/autotolk/locales.js.coffee in autotolk-0.1.5

- old
+ new

@@ -5,10 +5,10 @@ $('div#autotranslate').on 'click', 'button', -> startTranslating() startTranslating = () -> autotranslatingClicked += 1 - to_lang = document.URL.split('/').slice(-1).pop() + to_lang = document.URL.split('?')[0].split('/').slice(-1).pop() $translation_rows = $('table.translations tbody tr:not(:first-child)') for $translation_row in $translation_rows original = $translation_row.querySelector('td.original textarea#translations__original_text').innerText $translationArea = $translation_row.querySelector('td.translation textarea') if $translationArea.innerText == '' && autotranslatingClicked == 1