Make answers translatable
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user