File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -29,4 +29,24 @@ $(document).ready(function() {
29
29
theme : "dracula" ,
30
30
lineNumbers : true
31
31
} ) ;
32
+
33
+ // Ensure documentation cards are displayed at the bottom of each tab in the
34
+ // module configuration form. HelperForm renders documentation inputs as
35
+ // ``type => html`` fields wrapped in a ``form-group`` element. We move that
36
+ // wrapper to the end of the tab content so that tips are displayed after all
37
+ // configuration fields, which matches the expected layout.
38
+ $ ( '.tab-content .tab-pane' ) . each ( function ( ) {
39
+ const $wrapper = $ ( this ) . find ( '.form-wrapper' ) ;
40
+
41
+ if ( ! $wrapper . length ) {
42
+ return ;
43
+ }
44
+
45
+ $wrapper
46
+ . find ( '.form-group' )
47
+ . filter ( function ( ) {
48
+ return $ ( this ) . find ( '.everblock-doc' ) . length > 0 ;
49
+ } )
50
+ . appendTo ( $wrapper ) ;
51
+ } ) ;
32
52
} ) ;
You can’t perform that action at this time.
0 commit comments