Index: trunk/extensions/SemanticFormsInputs/SFI_Inputs.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | |
30 | 30 | wfLoadExtensionMessages( 'SemanticFormsInputs' ); |
31 | 31 | |
32 | | - $jstext = <<<END |
| 32 | + $jstext = <<<JAVASCRIPT |
33 | 33 | function validate_input_with_regexp(input_number, re, inverse, message, multiple){ |
34 | 34 | |
35 | 35 | if (multiple) { |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | } |
61 | 61 | } |
62 | 62 | } |
63 | | -END; |
| 63 | +JAVASCRIPT; |
64 | 64 | |
65 | 65 | $wgOut->addInlineScript( $jstext ); |
66 | 66 | } |
— | — | @@ -222,7 +222,7 @@ |
223 | 223 | "}\n" . |
224 | 224 | "addOnloadHook(datePickerSetLocale);"; |
225 | 225 | |
226 | | - $jstext = <<<END |
| 226 | + $jstext = <<<JAVASCRIPT |
227 | 227 | function toggle_datepicker(toggle_button) { |
228 | 228 | |
229 | 229 | var id = toggle_button.id.replace("_button",""); |
— | — | @@ -319,8 +319,8 @@ |
320 | 320 | var id = toggle_button.id.replace("_resetbutton",""); |
321 | 321 | if (sfiElements[id]) sfiElements[id].clear(); |
322 | 322 | document.getElementById(id).value=""; |
323 | | - } |
324 | | -END; |
| 323 | + } |
| 324 | +JAVASCRIPT; |
325 | 325 | |
326 | 326 | $jstext .= $locString; |
327 | 327 | |
— | — | @@ -625,14 +625,14 @@ |
626 | 626 | if ( count( $parts ) == 3 ) { |
627 | 627 | $defaultDateString = '"' . $parts[1] . '/' . $parts[0] . '/' . $parts[2] . '"'; |
628 | 628 | |
629 | | - $setDefaultDateString = <<<END |
| 629 | + $setDefaultDateString = <<<JAVASCRIPT |
630 | 630 | document.getElementById("input_{$sfgFieldNum}").value= |
631 | 631 | YAHOO.util.Date.format( |
632 | 632 | new Date(Date.parse($defaultDateString)), |
633 | 633 | {format:"$dateFormatString"}, |
634 | 634 | 'wiki' |
635 | 635 | ); |
636 | | -END; |
| 636 | +JAVASCRIPT; |
637 | 637 | |
638 | 638 | } |
639 | 639 | } |
— | — | @@ -715,7 +715,7 @@ |
716 | 716 | } elseif ( $is_disabled ) { |
717 | 717 | $jstext = ''; |
718 | 718 | } else { |
719 | | - $jstext = <<<END |
| 719 | + $jstext = <<<JAVASCRIPT |
720 | 720 | function setup_input_{$sfgFieldNum}() { |
721 | 721 | |
722 | 722 | sfiElements['settings_$sfgFieldNum'] = new Object(); |
— | — | @@ -736,7 +736,7 @@ |
737 | 737 | } |
738 | 738 | |
739 | 739 | addOnloadHook(setup_input_{$sfgFieldNum}); |
740 | | -END; |
| 740 | +JAVASCRIPT; |
741 | 741 | } |
742 | 742 | |
743 | 743 | return array( $htmltext, $jstext ); |