Make answers translatable

This commit is contained in:
Julian Herrero
2018-09-20 17:13:40 +02:00
parent 5e6248d2ac
commit 673ec075eb
13 changed files with 258 additions and 28 deletions

View File

@@ -23,7 +23,10 @@ App.Globalize =
element.addClass('is-active');
remove_language: (locale) ->
$(".js-globalize-attribute[data-locale=" + locale + "]").val('').hide()
$(".js-globalize-attribute[data-locale=" + locale + "]").each ->
$(this).val('').hide()
if CKEDITOR.instances[$(this).attr('id')]
CKEDITOR.instances[$(this).attr('id')].setData('')
$(".js-globalize-locale-link[data-locale=" + locale + "]").hide()
next = $(".js-globalize-locale-link:visible").first()
App.Globalize.highlight_locale(next)