r114970 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114969‎ | r114970 | r114971 >
Date:18:54, 19 April 2012
Author:foxtrott
Status:new
Tags:
Comment:
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
@@ -64,7 +64,7 @@
6565 * @return null|string|array
6666 */
6767 public function getResourceModuleNames() {
68 - return 'ext.semanticformsinputs.datepicker';
 68+ return array( 'jquery.ui.datepicker', 'ext.semanticformsinputs.datepicker' );
6969 }
7070
7171 /**
@@ -82,7 +82,7 @@
8383
8484 // set localized messages (use MW i18n, not jQuery i18n)
8585 $jstext =
86 - "mw.loader.using('ext.semanticformsinputs.datepicker', function(){\n"
 86+ "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"

Follow-up revisions

RevisionCommit summaryAuthorDate
r114977followup r114970: another attempt at bugfix (datepicker module not available ...foxtrott21:11, 19 April 2012