Index: trunk/extensions/SemanticFormsInputs/includes/SFI_DatePicker.php |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | |
84 | 84 | // set localized messages (use MW i18n, not jQuery i18n) |
85 | 85 | $jstext = |
86 | | - "mw.loader.using('jquery.ui.datepicker', function(){\n" |
| 86 | + "jQuery(function(){mw.loader.using('jquery.ui.datepicker', function(){\n" |
87 | 87 | . " jQuery.datepicker.regional['wiki'] = {\n" |
88 | 88 | . " closeText: '" . Xml::escapeJsString( wfMsg( 'semanticformsinputs-close' ) ) . "',\n" |
89 | 89 | . " prevText: '" . Xml::escapeJsString( wfMsg( 'semanticformsinputs-prev' ) ) . "',\n" |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | . " showMonthAfterYear: false,\n" |
147 | 147 | . " yearSuffix: ''};\n" |
148 | 148 | . " jQuery.datepicker.setDefaults(jQuery.datepicker.regional['wiki']);\n" |
149 | | - . "});\n"; |
| 149 | + . "});});\n"; |
150 | 150 | |
151 | 151 | $wgOut->addScript( Html::inlineScript( $jstext ) ); |
152 | 152 | |