Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php |
— | — | @@ -124,7 +124,6 @@ |
125 | 125 | } elseif ( $target_name == '' && $page_name_formula == '' ) { |
126 | 126 | $text = '<p class="error">' . wfMsg( 'sf_formedit_badurl' ) . "</p>\n"; |
127 | 127 | } else { |
128 | | - SFUtils::addJavascriptAndCSS(); |
129 | 128 | $form_article = new Article( $form_title ); |
130 | 129 | $form_definition = $form_article->getContent(); |
131 | 130 | |
— | — | @@ -249,6 +248,7 @@ |
250 | 249 | // if (! empty($javascript_text)) |
251 | 250 | // $wgOut->addScript(' <script type="text/javascript">' . "\n" . $javascript_text . '</script>' . "\n"); |
252 | 251 | $wgOut->addHTML( $text ); |
| 252 | + SFUtils::addJavascriptAndCSS(); |
253 | 253 | if ( ! empty( $javascript_text ) ) { |
254 | 254 | $wgOut->addHTML( ' <script type="text/javascript">' . "\n$javascript_text\n" . '</script>' . "\n" ); |
255 | 255 | } |