Skip to content

Commit

Permalink
Merge pull request #1490 from z-song/1.5
Browse files Browse the repository at this point in the history
1.5
  • Loading branch information
z-song authored Dec 14, 2017
2 parents 6f2d1b2 + acf4ebf commit fe40c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Field/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function load($field, $sourceUrl, $idField = 'id', $textField = 'text')
}

$script = <<<EOT
$(document).off('change', "{$this->getElementClassSelector()}");
$(document).on('change', "{$this->getElementClassSelector()}", function () {
var target = $(this).closest('.fields-group').find(".$class");
$.get("$sourceUrl?q="+this.value, function (data) {
Expand Down

0 comments on commit fe40c19

Please sign in to comment.