Merge pull request #2914 from microweb10/make_polls_translatable

Make polls translatable
This commit is contained in:
Raimond Garcia
2018-09-26 13:19:17 +02:00
committed by GitHub
25 changed files with 434 additions and 50 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)