From 72936f6e11b8b3f4e81fe1cda352725ce30f23df Mon Sep 17 00:00:00 2001 From: David ALLIX Date: Mon, 10 Nov 2014 16:04:07 +0100 Subject: [PATCH] CS --- Resources/public/js/a2lix_translation_default.js | 1 + TranslationForm/TranslationForm.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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();