Fixed bug #9553: Form validation script jsfunc.validateform.js sometimes fails in...
authorOliver Hader <oliver.hader@typo3.org>
Tue, 21 Oct 2008 15:15:31 +0000 (15:15 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 21 Oct 2008 15:15:31 +0000 (15:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4341 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/jsfunc.validateform.js

index 52b0518..2163a1b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-21  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #9553: Form validation script jsfunc.validateform.js sometimes fails in IE (thanks to Vladimir Podkovanov)
+
 2008-10-20  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Updated htmlArea RTE manual
index 3d11eae..a5abd56 100755 (executable)
@@ -34,6 +34,7 @@ function validateForm(theFormname,theFieldlist,goodMess,badMess,emailMess)    {
                var theEreg = '';
                var theEregMsg = '';
                var specialMode = '';
+               var theLabel, a;
 
                while (theField) {
                        theEreg = '';
@@ -149,7 +150,8 @@ function validateForm(theFormname,theFieldlist,goodMess,badMess,emailMess)  {
 function split(theStr1, delim, index) {
        var theStr = ''+theStr1;
        var lengthOfDelim = delim.length;
-       sPos = -lengthOfDelim;
+       var sPos = -lengthOfDelim;
+       var a, ePos;
        if (index<1) {index=1;}
        for (a=1; a<index; a++) {
                sPos = theStr.indexOf(delim, sPos+lengthOfDelim);