Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php |
— | — | @@ -230,11 +230,11 @@ |
231 | 231 | $text .= "</div>\n"; |
232 | 232 | } |
233 | 233 | $text .= <<<END |
234 | | - <form name="createbox" onsubmit="return validate_all()" action="" method="post" class="createbox"> |
| 234 | + <form name="createbox" id="sfForm" action="" method="post" class="createbox"> |
235 | 235 | |
236 | 236 | END; |
237 | 237 | $pre_form_html = ''; |
238 | | - wfRunHooks( 'sfHTMLBeforeForm', array( &$page_title, &$pre_form_html ) ); |
| 238 | + wfRunHooks( 'sfHTMLBeforeForm', array( &$target_title, &$pre_form_html ) ); |
239 | 239 | $text .= $pre_form_html; |
240 | 240 | $text .= $form_text; |
241 | 241 | } |
— | — | @@ -250,7 +250,7 @@ |
251 | 251 | // $wgOut->addScript(' <script type="text/javascript">' . "\n" . $javascript_text . '</script>' . "\n"); |
252 | 252 | $wgOut->addHTML( $text ); |
253 | 253 | if ( ! empty( $javascript_text ) ) { |
254 | | - $wgOut->addHTML( ' <script type="text/javascript">' . "\n" . $javascript_text . '</script>' . "\n" ); |
| 254 | + $wgOut->addHTML( ' <script type="text/javascript">' . "\n$javascript_text\n" . '</script>' . "\n" ); |
255 | 255 | } |
256 | 256 | } |
257 | 257 | |