Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -481,7 +481,7 @@ |
482 | 482 | if (x.currentStyle) { |
483 | 483 | // IE |
484 | 484 | var y = x.currentStyle['lineheight']; |
485 | | - } elseif (window.getComputedStyle) { |
| 485 | + } else if (window.getComputedStyle) { |
486 | 486 | // FF, Opera |
487 | 487 | var y = document.defaultView.getComputedStyle(x,null).getPropertyValue('line-height'); |
488 | 488 | } |
— | — | @@ -527,7 +527,7 @@ |
528 | 528 | { |
529 | 529 | txtarea = oDoc.FCK.EditingArea.Textarea ; |
530 | 530 | } |
531 | | - elseif (oDoc.editform) |
| 531 | + else if (oDoc.editform) |
532 | 532 | { |
533 | 533 | // if we have FCK enabled, behave differently... |
534 | 534 | if ( showFCKEditor & RTE_VISIBLE ) |
— | — | @@ -573,7 +573,7 @@ |
574 | 574 | //save window scroll position |
575 | 575 | if ( oDoc.documentElement && oDoc.documentElement.scrollTop ) |
576 | 576 | var winScroll = oDoc.documentElement.scrollTop ; |
577 | | - elseif ( oDoc.body ) |
| 577 | + else if ( oDoc.body ) |
578 | 578 | var winScroll = oDoc.body.scrollTop ; |
579 | 579 | |
580 | 580 | //get current selection |
— | — | @@ -595,11 +595,11 @@ |
596 | 596 | //restore window scroll position |
597 | 597 | if ( oDoc.documentElement && oDoc.documentElement.scrollTop ) |
598 | 598 | oDoc.documentElement.scrollTop = winScroll ; |
599 | | - elseif ( oDoc.body ) |
| 599 | + else if ( oDoc.body ) |
600 | 600 | oDoc.body.scrollTop = winScroll ; |
601 | 601 | |
602 | 602 | } |
603 | | - elseif ( txtarea.selectionStart || txtarea.selectionStart == '0' ) |
| 603 | + else if ( txtarea.selectionStart || txtarea.selectionStart == '0' ) |
604 | 604 | { // Mozilla |
605 | 605 | |
606 | 606 | //save textarea scroll position |
— | — | @@ -616,7 +616,7 @@ |
617 | 617 | selText = sampleText ; |
618 | 618 | isSample = true ; |
619 | 619 | } |
620 | | - elseif (selText.charAt(selText.length - 1) == ' ') |
| 620 | + else if (selText.charAt(selText.length - 1) == ' ') |
621 | 621 | { //exclude ending space char |
622 | 622 | selText = selText.substring(0, selText.length - 1) ; |
623 | 623 | tagClose += ' ' ; |
— | — | @@ -645,7 +645,7 @@ |
646 | 646 | if (!selText) { |
647 | 647 | selText = sampleText; |
648 | 648 | isSample = true; |
649 | | - } elseif (selText.charAt(selText.length - 1) == ' ') { //exclude ending space char |
| 649 | + } else if (selText.charAt(selText.length - 1) == ' ') { //exclude ending space char |
650 | 650 | selText = selText.substring(0, selText.length - 1); |
651 | 651 | tagClose += ' ' |
652 | 652 | } |