http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90995
Revision: 90995
Author: yaron
Date: 2011-06-28 20:31:15 +0000 (Tue, 28 Jun 2011)
Log Message:
-----------
Revert of changes in r90288 - changes of "else if" to "elseif" are fine in PHP
code, but not in Javascript code (which has no elseif) - and these were all in
Javascript code
Modified Paths:
--------------
trunk/extensions/SemanticForms/includes/SF_FormUtils.php
Modified: trunk/extensions/SemanticForms/includes/SF_FormUtils.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_FormUtils.php 2011-06-28
19:49:08 UTC (rev 90994)
+++ trunk/extensions/SemanticForms/includes/SF_FormUtils.php 2011-06-28
20:31:15 UTC (rev 90995)
@@ -481,7 +481,7 @@
if (x.currentStyle) {
// IE
var y = x.currentStyle['lineheight'];
- } elseif (window.getComputedStyle) {
+ } else if (window.getComputedStyle) {
// FF, Opera
var y =
document.defaultView.getComputedStyle(x,null).getPropertyValue('line-height');
}
@@ -527,7 +527,7 @@
{
txtarea = oDoc.FCK.EditingArea.Textarea ;
}
- elseif (oDoc.editform)
+ else if (oDoc.editform)
{
// if we have FCK enabled, behave differently...
if ( showFCKEditor & RTE_VISIBLE )
@@ -573,7 +573,7 @@
//save window scroll position
if ( oDoc.documentElement &&
oDoc.documentElement.scrollTop )
var winScroll =
oDoc.documentElement.scrollTop ;
- elseif ( oDoc.body )
+ else if ( oDoc.body )
var winScroll = oDoc.body.scrollTop ;
//get current selection
@@ -595,11 +595,11 @@
//restore window scroll position
if ( oDoc.documentElement &&
oDoc.documentElement.scrollTop )
oDoc.documentElement.scrollTop =
winScroll ;
- elseif ( oDoc.body )
+ else if ( oDoc.body )
oDoc.body.scrollTop = winScroll ;
}
- elseif ( txtarea.selectionStart ||
txtarea.selectionStart == '0' )
+ else if ( txtarea.selectionStart ||
txtarea.selectionStart == '0' )
{ // Mozilla
//save textarea scroll position
@@ -616,7 +616,7 @@
selText = sampleText ;
isSample = true ;
}
- elseif (selText.charAt(selText.length - 1) == '
')
+ else if (selText.charAt(selText.length - 1) ==
' ')
{ //exclude ending space char
selText = selText.substring(0,
selText.length - 1) ;
tagClose += ' ' ;
@@ -645,7 +645,7 @@
if (!selText) {
selText = sampleText;
isSample = true;
- } elseif (selText.charAt(selText.length - 1) == ' ') { //exclude ending
space char
+ } else if (selText.charAt(selText.length - 1) == ' ') { //exclude
ending space char
selText = selText.substring(0, selText.length - 1);
tagClose += ' '
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs