diff --git a/Resources/public/js/a2lix_translation_default.js b/Resources/public/js/a2lix_translation_default.js index be1d6bd..e616643 100644 --- a/Resources/public/js/a2lix_translation_default.js +++ b/Resources/public/js/a2lix_translation_default.js @@ -1,6 +1,7 @@ $(function() { $('ul.a2lix_translationsLocales').on('click', 'a', function(evt) { evt.preventDefault(); + var target = $(this).attr('data-target'); $('li:has(a[data-target="' + target + '"]), div' + target, 'div.a2lix_translations').addClass('active') .siblings().removeClass('active'); diff --git a/TranslationForm/TranslationForm.php b/TranslationForm/TranslationForm.php index bb1556a..7963dae 100644 --- a/TranslationForm/TranslationForm.php +++ b/TranslationForm/TranslationForm.php @@ -106,7 +106,7 @@ private function getFieldsList($options, $class) /** * {@inheritdoc} */ - public function getFormsOptions($options) + public function getFormsOptions($options) { $formsOptions = array();