Bug #11172
closedSelect2 should be initialized explicitly
Description
After select2 was merge, we saw issues with ajax loaded forms. We have workarounds that initialize select2, destroy it and reinitialize it later. When a poor plugin developer wants have control over forms we don't provide any way how to customize this.
I think we should call initialize select2 only on select fields that have specific class.
Updated by Marek Hulán over 9 years ago
- Related to Bug #11171: Select2 does not work with compute profiles added
Updated by Marek Hulán over 9 years ago
- Related to Bug #11173: Multi-select should be initialized explicitly added
Updated by Dominic Cleal over 9 years ago
Perhaps a class to exclude it would be easier, and then less likely to cause inconsistencies (because somebody forgot to add a class, or a plugin hasn't done it yet)?
Updated by Marek Hulán over 9 years ago
that would be ideal but I'm not sure about :not pseudo-class support, according to http://caniuse.com/#feat=css-sel3 it seems usable
Updated by Dominic Cleal over 9 years ago
Yeah, and we already use it in places.
Updated by Dominic Cleal over 9 years ago
- Related to Feature #10641: Ability to search VmWare networks added
Updated by Dominic Cleal over 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Tomer Brisker
- Translation missing: en.field_release set to 35
- Pull request https://github.com/theforeman/foreman/pull/2592 added
- Pull request deleted (
)
Updated by Shlomi Zadok over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 83344af2cc49563e3f1e79ae12f9112d0d2618b6.