Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiple colorpickers on the same page #331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Resources/views/Form/jquery_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<script type="text/javascript">
jQuery(document).ready(function($) {
$field = $('#{% if widget != "single_text" %}datepicker_{% endif %}{{ id }}');

{% block genemu_jquerydate_javascript_prototype %}

{% if configs.buttonImage is defined %}
Expand Down Expand Up @@ -160,7 +160,7 @@
}, {{ configs|json_encode|raw }});

{% if widget == "image" %}
$picker = $('#{{ id }}_color');
var $picker = $('#{{ id }}_color');

$picker.ColorPicker($.extend({
onChange: function(hsb, hex, rgb) {
Expand Down Expand Up @@ -333,7 +333,7 @@
{% endif %}

$autocompleter.autocomplete($configs);

{% if configs.minLength is defined and 0 == configs.minLength %}
$autocompleter.focus(function() {
$(this).autocomplete("search", "");
Expand Down