Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -177,6 +177,8 @@ |
178 | 178 | |
179 | 179 | if ( $wgFCKEditorDir ) |
180 | 180 | $scripts[] = "$wgScriptPath/$wgFCKEditorDir/fckeditor.js"; |
| 181 | + $scripts[] = "$sfgScriptPath/libs/SemanticForms.js"; |
| 182 | + |
181 | 183 | global $wgOut; |
182 | 184 | foreach ( $scripts as $js ) { |
183 | 185 | if ( $parser ) { |
— | — | @@ -186,12 +188,6 @@ |
187 | 189 | $wgOut->addScriptFile( $js ); |
188 | 190 | } |
189 | 191 | } |
190 | | - // The Semantic Forms custom Javascript needs to be included |
191 | | - // at the end of the page, after the relevant HTML elements |
192 | | - // have been defined. |
193 | | - $js = "$sfgScriptPath/libs/SemanticForms.js"; |
194 | | - $script = "<script type=\"$wgJsMimeType\" src=\"$js\"></script>\n"; |
195 | | - $wgOut->addHTML( $script ); |
196 | 192 | if ( !$parser ) |
197 | 193 | $wgOut->addMeta( 'robots', 'noindex,nofollow' ); |
198 | 194 | } |