This repository was archived by the owner on Jul 11, 2019. It is now read-only.
Commit 042dd1d
committed
Delay the widget initialization
Many people like to place {{ form.media }} at the end of the page, in this case jQuery would not be loaded yet when the initialization runs (js_template).
I'm not a javascript guy, perhaps there is a better way to delay the widget initialization, but this worked for me.1 parent 8aa28a6 commit 042dd1d
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
| |||
0 commit comments