Skip to content

Commit

Permalink
Merge pull request #10 from YouweGit/p.bettini-onChange-event-pimcore5
Browse files Browse the repository at this point in the history
adding event "change" - pimcore 5
  • Loading branch information
Sunohara666 authored Sep 21, 2018
2 parents dc338cb + 7263bc8 commit 6de9fd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Resources/public/js/pimcore/object/tags/hrefTypeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ pimcore.object.tags.hrefTypeahead = Class.create(pimcore.object.tags.abstract, {
this.data.type = newRecord.data.type;
this.data.subtype = newRecord.data.subtype;
}

if (this.dataChanged && this.fieldConfig.listeners != undefined && {}.toString.call(this.fieldConfig.listeners.change) === '[object Function]'){
this.fieldConfig.listeners.change(combobox, newValue, oldValue);
}

}.bind(this));

var items = [this.component, {
Expand Down

0 comments on commit 6de9fd4

Please sign in to comment.