diff options
| author | Zog | 2018-01-11 18:08:48 +0100 |
|---|---|---|
| committer | Zog | 2018-01-11 18:08:48 +0100 |
| commit | 793ba0b0ccdff2078f613c23a407dad9d2aff5ce (patch) | |
| tree | 511897ef04f29728558f27d596bb55de28df285b | |
| parent | 6d89d20934e18fb5e39587dc1d9f7d3911648b46 (diff) | |
| download | chouette-core-793ba0b0ccdff2078f613c23a407dad9d2aff5ce.tar.bz2 | |
Refs #5557 @0.5h; Fix select25557-fix-calendar-creation
| -rw-r--r-- | app/assets/javascripts/select2.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/select2.coffee b/app/assets/javascripts/select2.coffee index 4cf5f42d0..05b73dc6b 100644 --- a/app/assets/javascripts/select2.coffee +++ b/app/assets/javascripts/select2.coffee @@ -27,9 +27,9 @@ bind_select2_ajax = (el, cfg = {}) -> item.text escapeMarkup: (markup) -> markup - initSelection : (item, callback) -> - if _this.data('initvalue') - callback(_this.data('initvalue')) + + if _this.data('initvalue') + cfg["initSelection"] = (item, callback) -> callback(_this.data('initvalue')) bind_select2(el, cfg) |
