Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(forms): ensure select2 is included last
Select2 needs to be initialised AFTER jQuery is added to the global namespace. This commit also: - Ensures min-width for the select2 widget, and explicitly initialised the widget for the first field selected. - Add latest django context_processors to TEMPLATES.OPTIONS setting
- Loading branch information
Showing
6 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ tests/db.sqlite* | |
/.eggs/ | ||
/htmlcov/ | ||
/advanced_filters/.coverage | ||
|
||
/tests/local.db |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,4 +66,8 @@ | |
} | ||
.empty-form { | ||
display: none; | ||
} | ||
|
||
.select2-container { | ||
min-width: 166px; | ||
} |
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