app/assets/javascripts/lolita/i18n/i18n.js.coffee in lolita-i18n-0.2.0 vs app/assets/javascripts/lolita/i18n/i18n.js.coffee in lolita-i18n-0.3.0
- old
+ new
@@ -126,10 +126,10 @@
$('button.translate:first').click ->
if confirm('Are you shure?')
new LolitaTranslate $(this)
$('#show_untranslated').change ->
active_locale = if params('active_locale') == "null" then "" else "active_locale=" + params('active_locale')
- if $(this).attr('checked')
+ if $(this).is(':checked')
window.location.href = "?show_untranslated=true&" + active_locale
else
window.location.href = "?" + active_locale
\ No newline at end of file