Skip to content
Browse files

Merge pull request #221 from joelwurtz/patch-1

Fix variable scope for color picker
  • Loading branch information...
2 parents 2537f6f + c1c36ea commit 34192c05d077839d73e1a9d1c639212e1480a166 @bamarni bamarni committed Jan 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 Resources/views/Form/jquery_layout.html.twig
View
4 Resources/views/Form/jquery_layout.html.twig
@@ -136,8 +136,8 @@
{% spaceless %}
<script type="text/javascript">
jQuery(document).ready(function($) {
- $field = $('#{{ id }}');
- $configs = $.extend({
+ var $field = $('#{{ id }}');
+ var $configs = $.extend({
color: '#' + $field.val(),
onBeforeShow: function() {
$(this).ColorPickerSetColor($field.val());

0 comments on commit 34192c0

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