Skip to content

Commit

Permalink
fixed regression from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bamarni committed Nov 21, 2012
1 parent 7d2f82c commit eadb771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions Resources/views/Form/div_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

{% set attr = {"size": 10}|merge(attr) %}
{% set id = "datepicker_" ~ id %}
{% set value = '' %}
{% set full_name = "datepicker_" ~ full_name %}
{{ block("hidden_widget") }}
</div>
Expand Down
4 changes: 1 addition & 3 deletions Resources/views/Form/jquery_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

<script type="text/javascript">
jQuery(document).ready(function($) {
$field = $('#{{ id }}');
$field = $('#{% if widget != "single_text" %}datepicker_{% endif %}{{ id }}');
{% block genemu_jquerydate_javascript_prototype %}
Expand All @@ -96,8 +96,6 @@
}, $.datepicker.regional['{{ culture }}'] ,{{ configs|json_encode|raw }});
{% if widget != "single_text" %}
{% set id = "datepicker_" ~ id %}
var $year = $('#{{ form.year.vars.id }}');
var $month = $('#{{ form.month.vars.id }}');
var $day = $('#{{ form.day.vars.id }}');
Expand Down

0 comments on commit eadb771

Please sign in to comment.