Fixed bug #17072: Missing semicolons in JS code
authorSteffen Gebert <steffen.gebert@typo3.org>
Mon, 17 Jan 2011 21:04:02 +0000 (21:04 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Mon, 17 Jan 2011 21:04:02 +0000 (21:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10102 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php
typo3/template.php

index 68ac359..b57cef2 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-17  Steffen Gebert  <steffen@steffen-gebert.de>
+
+       * Fixed bug #17072: Missing semicolons in JS code
+
 2011-01-17  Ernesto Baschny  <ernst@cron-it.de>
 
        * Fixed bug #16740: <img> Tags are rendered with border attribute in HTML5 mode (Thanks to Sebastian Michaelsen)
index 3856be9..361042f 100644 (file)
@@ -5535,7 +5535,7 @@ class t3lib_TCEforms {
                                Element.toggle(""+id+"-content");
 
                                if (Element.visible(id+"-content")) {
-                                       $(id+"-toggle").update(\'' . $toggleIcon_open . '\')
+                                       $(id+"-toggle").update(\'' . $toggleIcon_open . '\');
                                        $(id+"-toggleClosed").value = 0;
                                } else {
                                        $(id+"-toggle").update(\'' . $toggleIcon_close . '\');
@@ -5680,8 +5680,8 @@ class t3lib_TCEforms {
                                browserWin.focus();
                        }
                        function setFormValueFromBrowseWin(fName,value,label,exclusiveValues)   {       //
-                               var formObj = setFormValue_getFObj(fName)
-                               if (formObj && value!="--div--")        {
+                               var formObj = setFormValue_getFObj(fName);
+                               if (formObj && value !== "--div--") {
                                        fObj = formObj[fName+"_list"];
                                        var len = fObj.length;
                                                // Clear elements if exclusive values are found
@@ -5689,7 +5689,9 @@ class t3lib_TCEforms {
                                                var m = new RegExp("(^|,)"+value+"($|,)");
                                                if (exclusiveValues.match(m))   {
                                                                // the new value is exclusive
-                                                       for (a=len-1;a>=0;a--)  fObj[a] = null;
+                                                       for (a = len - 1; a >= 0; a--) {
+                                                               fObj[a] = null;
+                                                       }
                                                        len = 0;
                                                } else if (len == 1)    {
                                                        m = new RegExp("(^|,)"+fObj.options[0].value+"($|,)");
@@ -5728,7 +5730,7 @@ class t3lib_TCEforms {
                                }
                        }
                        function setFormValueManipulate(fName,type)     {       //
-                               var formObj = setFormValue_getFObj(fName)
+                               var formObj = setFormValue_getFObj(fName);
                                if (formObj)    {
                                        var localArray_V = new Array();
                                        var localArray_L = new Array();
index e6d4727..5b98c84 100644 (file)
@@ -840,7 +840,7 @@ class template {
                                                                info: Ext.log,
                                                                warn: Ext.log,
                                                                error: Ext.log
-                                                       }
+                                                       };
                                                }
                                        }
                                });