Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -489,7 +489,7 @@ |
490 | 490 | if (x.currentStyle) { |
491 | 491 | // IE |
492 | 492 | var y = x.currentStyle['lineheight']; |
493 | | - } elseif (window.getComputedStyle) { |
| 493 | + } else if (window.getComputedStyle) { |
494 | 494 | // FF, Opera |
495 | 495 | var y = document.defaultView.getComputedStyle(x,null).getPropertyValue('line-height'); |
496 | 496 | } |
— | — | @@ -535,7 +535,7 @@ |
536 | 536 | { |
537 | 537 | txtarea = oDoc.FCK.EditingArea.Textarea ; |
538 | 538 | } |
539 | | - elseif (oDoc.editform) |
| 539 | + else if (oDoc.editform) |
540 | 540 | { |
541 | 541 | // if we have FCK enabled, behave differently... |
542 | 542 | if ( showFCKEditor & RTE_VISIBLE ) |
— | — | @@ -581,7 +581,7 @@ |
582 | 582 | //save window scroll position |
583 | 583 | if ( oDoc.documentElement && oDoc.documentElement.scrollTop ) |
584 | 584 | var winScroll = oDoc.documentElement.scrollTop ; |
585 | | - elseif ( oDoc.body ) |
| 585 | + else if ( oDoc.body ) |
586 | 586 | var winScroll = oDoc.body.scrollTop ; |
587 | 587 | |
588 | 588 | //get current selection |
— | — | @@ -603,11 +603,11 @@ |
604 | 604 | //restore window scroll position |
605 | 605 | if ( oDoc.documentElement && oDoc.documentElement.scrollTop ) |
606 | 606 | oDoc.documentElement.scrollTop = winScroll ; |
607 | | - elseif ( oDoc.body ) |
| 607 | + else if ( oDoc.body ) |
608 | 608 | oDoc.body.scrollTop = winScroll ; |
609 | 609 | |
610 | 610 | } |
611 | | - elseif ( txtarea.selectionStart || txtarea.selectionStart == '0' ) |
| 611 | + else if ( txtarea.selectionStart || txtarea.selectionStart == '0' ) |
612 | 612 | { // Mozilla |
613 | 613 | |
614 | 614 | //save textarea scroll position |
— | — | @@ -624,7 +624,7 @@ |
625 | 625 | selText = sampleText ; |
626 | 626 | isSample = true ; |
627 | 627 | } |
628 | | - elseif (selText.charAt(selText.length - 1) == ' ') |
| 628 | + else if (selText.charAt(selText.length - 1) == ' ') |
629 | 629 | { //exclude ending space char |
630 | 630 | selText = selText.substring(0, selText.length - 1) ; |
631 | 631 | tagClose += ' ' ; |
— | — | @@ -653,7 +653,7 @@ |
654 | 654 | if (!selText) { |
655 | 655 | selText = sampleText; |
656 | 656 | isSample = true; |
657 | | - } elseif (selText.charAt(selText.length - 1) == ' ') { //exclude ending space char |
| 657 | + } else if (selText.charAt(selText.length - 1) == ' ') { //exclude ending space char |
658 | 658 | selText = selText.substring(0, selText.length - 1); |
659 | 659 | tagClose += ' ' |
660 | 660 | } |