X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Fedit_root.tpl;h=3bc93cf01197d8f75cc606947b7af4ec206dafed;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=b57f4ae2a4bd3411228639aa1cfd29ed70e4bdfe;hpb=e2c528e1d7ab18d259e3134d591fb5d7aa0eae17;p=platal.git diff --git a/templates/survey/edit_root.tpl b/templates/survey/edit_root.tpl index b57f4ae..3bc93cf 100644 --- a/templates/survey/edit_root.tpl +++ b/templates/survey/edit_root.tpl @@ -44,13 +44,13 @@ {literal} $(document).ready(function() { function hidePromo(value) { - if (value == "0" || value == "") { - $("#ln_promo").hide(); + if (value == "0" || value == "") { + $("#ln_promo").hide(); $("#ln_promo_exp").hide(); - } else { + } else { $("#ln_promo").show(); $("#ln_promo_exp").show(); - } + } } $("[name='survey_question[mode]']").change(function() { hidePromo(this.value); }); hidePromo({/literal}"{$survey_current.mode}"{literal});