Index: trunk/extensions/SemanticFormsInputs/includes/SFI_DatePicker.php |
— | — | @@ -74,22 +74,16 @@ |
75 | 75 | static private function setup() { |
76 | 76 | |
77 | 77 | global $wgOut, $wgLang; |
78 | | -// global $sfgScriptPath, $sfigSettings; |
79 | 78 | |
80 | 79 | static $hasRun = false; |
81 | 80 | |
82 | 81 | if ( !$hasRun ) { |
83 | 82 | $hasRun = true; |
84 | 83 | |
85 | | -// $wgOut->addExtensionStyle( $sfgScriptPath . '/skins/jquery-ui/base/jquery.ui.datepicker.css' ); |
86 | | -// $wgOut->addExtensionStyle( $sfgScriptPath . '/skins/jquery-ui/base/jquery.ui.theme.css' ); |
87 | | -// $wgOut->addScript( '<script type="text/javascript" src="' . $sfgScriptPath . '/libs/jquery-ui/jquery.ui.datepicker.min.js"></script> ' ); |
88 | | -// $wgOut->addScript( '<script type="text/javascript" src="' . $sfigSettings->scriptPath . '/libs/datepicker.js"></script> ' ); |
89 | | - |
90 | 84 | // set localized messages (use MW i18n, not jQuery i18n) |
91 | 85 | $jstext = |
92 | | -// "mw.loader.using('ext.semanticformsinputs.datepicker', function(){\n" . |
93 | | - " jQuery.datepicker.regional['wiki'] = {\n" |
| 86 | + "mw.loader.using('ext.semanticformsinputs.datepicker', function(){\n" |
| 87 | + . " jQuery.datepicker.regional['wiki'] = {\n" |
94 | 88 | . " closeText: '" . Xml::escapeJsString( wfMsg( 'semanticformsinputs-close' ) ) . "',\n" |
95 | 89 | . " prevText: '" . Xml::escapeJsString( wfMsg( 'semanticformsinputs-prev' ) ) . "',\n" |
96 | 90 | . " nextText: '" . Xml::escapeJsString( wfMsg( 'semanticformsinputs-next' ) ) . "',\n" |
— | — | @@ -150,8 +144,8 @@ |
151 | 145 | . " isRTL: " . ( $wgLang->isRTL() ? "true" : "false" ) . ",\n" |
152 | 146 | . " showMonthAfterYear: false,\n" |
153 | 147 | . " yearSuffix: ''};\n" |
154 | | - . " jQuery.datepicker.setDefaults(jQuery.datepicker.regional['wiki']);\n"; |
155 | | -// . "});\n"; |
| 148 | + . " jQuery.datepicker.setDefaults(jQuery.datepicker.regional['wiki']);\n" |
| 149 | + . "});\n"; |
156 | 150 | |
157 | 151 | $wgOut->addScript( Html::inlineScript( $jstext ) ); |
158 | 152 | |