diff options
| author | Luc Donnet | 2018-05-23 12:45:06 +0200 | 
|---|---|---|
| committer | GitHub | 2018-05-23 12:45:06 +0200 | 
| commit | 192f7b1c8a42e9de63aab64c4f815ebddde7fbd6 (patch) | |
| tree | 15f1069fc0fe636d23bf0669b365e1364d982fef /app | |
| parent | 223fb43d3e0bc0a7aba73252f5c44b1a3202a84a (diff) | |
| parent | 00d3b925025597b4b67060ce388c73575e384c94 (diff) | |
| download | chouette-core-192f7b1c8a42e9de63aab64c4f815ebddde7fbd6.tar.bz2 | |
Merge pull request #539 from af83/6845-fix-ie
Refs #6845; Fix IE 
Diffstat (limited to 'app')
| -rw-r--r-- | app/javascript/helpers/polyfills.js | 1 | ||||
| -rw-r--r-- | app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js | 3 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/app/javascript/helpers/polyfills.js b/app/javascript/helpers/polyfills.js index 93e3e9846..691fe04af 100644 --- a/app/javascript/helpers/polyfills.js +++ b/app/javascript/helpers/polyfills.js @@ -1,4 +1,5 @@  import 'promise-polyfill/src/polyfill'  import 'es6-symbol/implement'  import 'polyfill-array-includes' +import 'babel-polyfill'  import 'whatwg-fetch' diff --git a/app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js b/app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js index cec39ab4e..a0438d7c5 100644 --- a/app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js +++ b/app/javascript/vehicle_journeys/components/tools/select2s/MissionSelect2.js @@ -58,7 +58,8 @@ export default class BSelect4 extends Component {        this.props.onSelect2JourneyPattern(e)      }      else{ -      let data = JSON.parse(e.currentTarget.selectedOptions[0].dataset.item) +      let option = e.currentTarget.options[e.currentTarget.selectedIndex] +      let data = JSON.parse(option.dataset.item)        this.props.onSelect2JourneyPattern({params:          { | 
