Skip to content
This repository
Browse code

Merge pull request #221 from joelwurtz/patch-1

Fix variable scope for color picker
  • Loading branch information...
commit 34192c05d077839d73e1a9d1c639212e1480a166 2 parents 2537f6f + c1c36ea
Bilal Amarni bamarni authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 Resources/views/Form/jquery_layout.html.twig
4 Resources/views/Form/jquery_layout.html.twig
@@ -136,8 +136,8 @@
136 136 {% spaceless %}
137 137 <script type="text/javascript">
138 138 jQuery(document).ready(function($) {
139   - $field = $('#{{ id }}');
140   - $configs = $.extend({
  139 + var $field = $('#{{ id }}');
  140 + var $configs = $.extend({
141 141 color: '#' + $field.val(),
142 142 onBeforeShow: function() {
143 143 $(this).ColorPickerSetColor($field.val());

0 comments on commit 34192c0

Please sign in to comment.
Something went wrong with that request. Please try again.