Skip to content

Commit

Permalink
fix(glpiselect): compatibility with GLPI 9.3
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 3, 2018
1 parent 6a355f9 commit a9aea5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/fields/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public function displayField($canEdit = true) {
jQuery("#dropdown_formcreator_field_' . $this->fields['id'] . $rand . '").on("select2-selecting", function(e) {
formcreatorChangeValueOf (' . $this->fields['id']. ', e.val);
});
var field = $("#dropdown_formcreator_field_' . $this->fields['id'] . $rand . '");
field.on("change", function(e) {
formcreatorChangeValueOf (' . $this->fields['id']. ', e.target.value);
});
});
</script>';
} else {
Expand Down

0 comments on commit a9aea5a

Please sign in to comment.