r114977 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114976‎ | r114977 | r114978 >
Date:21:11, 19 April 2012
Author:foxtrott
Status:new
Tags:
Comment:
followup r114970: another attempt at bugfix (datepicker module not available when used)
Modified paths:
  • /trunk/extensions/SemanticFormsInputs/includes/SFI_DatePicker.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticFormsInputs/includes/SFI_DatePicker.php
@@ -82,7 +82,7 @@
8383
8484 // set localized messages (use MW i18n, not jQuery i18n)
8585 $jstext =
86 - "mw.loader.using('jquery.ui.datepicker', function(){\n"
 86+ "jQuery(function(){mw.loader.using('jquery.ui.datepicker', function(){\n"
8787 . " jQuery.datepicker.regional['wiki'] = {\n"
8888 . " closeText: '" . Xml::escapeJsString( wfMsg( 'semanticformsinputs-close' ) ) . "',\n"
8989 . " prevText: '" . Xml::escapeJsString( wfMsg( 'semanticformsinputs-prev' ) ) . "',\n"
@@ -145,7 +145,7 @@
146146 . " showMonthAfterYear: false,\n"
147147 . " yearSuffix: ''};\n"
148148 . " jQuery.datepicker.setDefaults(jQuery.datepicker.regional['wiki']);\n"
149 - . "});\n";
 149+ . "});});\n";
150150
151151 $wgOut->addScript( Html::inlineScript( $jstext ) );
152152

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r114970bugfix (datepicker module not available when used)foxtrott18:54, 19 April 2012