r79541 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79540‎ | r79541 | r79542 >
Date:00:31, 4 January 2011
Author:yaron
Status:deferred
Tags:
Comment:
New Semantic Forms Javascript input-registration functions were renamed
Modified paths:
  • /trunk/extensions/SemanticFormsInputs/SFI_Inputs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticFormsInputs/SFI_Inputs.php
@@ -194,7 +194,7 @@
195195 // register event to validate regexp on submit/preview
196196 $jstext = <<<JAVASCRIPT
197197 jQuery(function(){
198 - jQuery('#input_$sfgFieldNum').registerValidation( SFI_RE_validate, {retext: {$regexp}, inverse: {$inverseString}, message: {$message} });
 198+ jQuery('#input_$sfgFieldNum').SemanticForms_registerInputValidation( SFI_RE_validate, {retext: {$regexp}, inverse: {$inverseString}, message: {$message} });
199199 });
200200 JAVASCRIPT;
201201
@@ -823,7 +823,7 @@
824824
825825 // wrap the JS code fragment in a function for deferred init
826826 $jstext = <<<JAVASCRIPT
827 -jQuery(function(){ jQuery('#input_{$sfgFieldNum}_dp_show').registerInitialisation(SFI_DP_init, $jsattribsString ); });
 827+jQuery(function(){ jQuery('#input_{$sfgFieldNum}_dp_show').SemanticForms_registerInputInit(SFI_DP_init, $jsattribsString ); });
828828 JAVASCRIPT;
829829
830830 // insert the code of the JS init function into the pages code
@@ -902,7 +902,7 @@
903903 $jsattribsString = Xml::encodeJsVar( $jsattribs );
904904
905905 $jstext = <<<JAVASCRIPT
906 -jQuery(function(){ jQuery('#input_$sfgFieldNum').registerInitialisation(SFI_DTP_init, $jsattribsString ); });
 906+jQuery(function(){ jQuery('#input_$sfgFieldNum').SemanticForms_registerInputInit(SFI_DTP_init, $jsattribsString ); });
907907 JAVASCRIPT;
908908
909909 // insert the code of the JS init function into the pages code
@@ -1167,7 +1167,7 @@
11681168 $jstext = Xml::encodeJsVar( $jsattribs );
11691169
11701170 $jstext = <<<JAVASCRIPT
1171 -jQuery(function(){ jQuery('#input_{$sfgFieldNum}_tp_show').registerInitialisation(SFI_TP_init, $jstext ); });
 1171+jQuery(function(){ jQuery('#input_{$sfgFieldNum}_tp_show').SemanticForms_registerInputInit(SFI_TP_init, $jstext ); });
11721172 JAVASCRIPT;
11731173
11741174 // write JS code directly to the page's code
@@ -1268,7 +1268,7 @@
12691269 $html = '<span class="inputSpan' . ($is_mandatory ? ' mandatoryFieldSpan' : '') . '">' .$html . '</span>';
12701270
12711271 $jstext = <<<JAVASCRIPT
1272 -jQuery(function(){ jQuery('#input_$sfgFieldNum').registerInitialisation(SFI_MS_init, null ); });
 1272+jQuery(function(){ jQuery('#input_$sfgFieldNum').SemanticForms_registerInputInit(SFI_MS_init, null ); });
12731273 JAVASCRIPT;
12741274
12751275 // write JS code directly to the page's code

Status & tagging log