-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(relations): refactor js and add it to forms Media class
The reinit_select2 functionality is now in a separate `rel_reinit_select2` function which is run every time the js is included *and* when the `reinit_select2` trigger is received (though not sure if thats even needed now). In addition the javascript is included in the relation forms Media class, so that the js is included with every relation form and thus the `rel_reinit_select2` function is executed everytime the form in loaded which is what we actually want to make the select2 work everytime. Closes: #1544
- Loading branch information
Showing
2 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters