[BUGFIX] New form wizard not loading in IE8
authorSebastian Schawohl <s.schawohl@magnetic.coop>
Tue, 31 Jan 2012 10:02:20 +0000 (11:02 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 22 Oct 2012 13:31:21 +0000 (15:31 +0200)
Internet Explorer 8 raises an error on JavaScript objects with reserved
words as property names. In the new form wizard an object was created
with class as property name which is a reserved word. Surrounding with
quotes fixes the bug.

Change-Id: Id9ceef79e8503886cdaebbf14ddb4e92c4b7dcea
Fixes: #33504
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/8776
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Mario Rimann
Tested-by: Mario Rimann
Reviewed-by: Stefan Neufeind
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
18 files changed:
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Button.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Checkbox.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Fieldset.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Fileupload.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Form.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Hidden.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Password.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Radio.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Reset.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Select.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Submit.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Textarea.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Textline.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Content/Header.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Content/Textblock.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Predefined/CheckboxGroup.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Predefined/Name.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Predefined/RadioGroup.js

index 894b4ce..2b487a8 100644 (file)
@@ -72,7 +72,7 @@ TYPO3.Form.Wizard.Elements.Basic.Button = Ext.extend(TYPO3.Form.Wizard.Elements,
                                attributes: {
                                        accesskey: '',
                                        alt: '',
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        disabled: '',
                                        id: '',
index c68208a..fe8283d 100644 (file)
@@ -72,7 +72,7 @@ TYPO3.Form.Wizard.Elements.Basic.Checkbox = Ext.extend(TYPO3.Form.Wizard.Element
                                attributes: {
                                        accesskey: '',
                                        alt: '',
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        disabled: '',
                                        id: '',
index e8aae46..d8558e6 100644 (file)
@@ -62,7 +62,7 @@ TYPO3.Form.Wizard.Elements.Basic.Fieldset = Ext.extend(TYPO3.Form.Wizard.Element
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        id: '',
                                        lang: '',
index c077079..90a42f0 100644 (file)
@@ -72,7 +72,7 @@ TYPO3.Form.Wizard.Elements.Basic.Fileupload = Ext.extend(TYPO3.Form.Wizard.Eleme
                                attributes: {
                                        accesskey: '',
                                        alt: '',
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        disabled: '',
                                        id: '',
index 1703b6f..c6a7377 100644 (file)
@@ -74,7 +74,7 @@ TYPO3.Form.Wizard.Elements.Basic.Form = Ext.extend(TYPO3.Form.Wizard.Elements, {
                                        accept: '',
                                        acceptcharset: '',
                                        action: '',
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        enctype: 'application/x-www-form-urlencoded',
                                        id: '',
index 7d56ccb..928e459 100644 (file)
@@ -47,7 +47,7 @@ TYPO3.Form.Wizard.Elements.Basic.Hidden = Ext.extend(TYPO3.Form.Wizard.Elements,
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       class: '',
+                                       "class": '',
                                        id: '',
                                        lang: '',
                                        name: '',
index eb23033..f3680a1 100644 (file)
@@ -72,7 +72,7 @@ TYPO3.Form.Wizard.Elements.Basic.Password = Ext.extend(TYPO3.Form.Wizard.Element
                                attributes: {
                                        accesskey: '',
                                        alt: '',
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        disabled: '',
                                        id: '',
index 9164772..616a3ff 100644 (file)
@@ -72,7 +72,7 @@ TYPO3.Form.Wizard.Elements.Basic.Radio = Ext.extend(TYPO3.Form.Wizard.Elements,
                                attributes: {
                                        accesskey: '',
                                        alt: '',
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        disabled: '',
                                        id: '',
index 4356cd1..17ef8cf 100644 (file)
@@ -72,7 +72,7 @@ TYPO3.Form.Wizard.Elements.Basic.Reset = Ext.extend(TYPO3.Form.Wizard.Elements,
                                attributes: {
                                        accesskey: '',
                                        alt: '',
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        disabled: '',
                                        id: '',
index d51e795..20abc04 100644 (file)
@@ -74,7 +74,7 @@ TYPO3.Form.Wizard.Elements.Basic.Select = Ext.extend(TYPO3.Form.Wizard.Elements,
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       class: '',
+                                       "class": '',
                                        disabled: '',
                                        id: '',
                                        lang: '',
index 9648532..b545270 100644 (file)
@@ -72,7 +72,7 @@ TYPO3.Form.Wizard.Elements.Basic.Submit = Ext.extend(TYPO3.Form.Wizard.Elements,
                                attributes: {
                                        accesskey: '',
                                        alt: '',
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        disabled: '',
                                        id: '',
index 54584ad..10e8c1f 100644 (file)
@@ -71,7 +71,7 @@ TYPO3.Form.Wizard.Elements.Basic.Textarea = Ext.extend(TYPO3.Form.Wizard.Element
                        configuration: {
                                attributes: {
                                        accesskey: '',
-                                       class: '',
+                                       "class": '',
                                        cols: '40',
                                        dir: '',
                                        disabled: '',
index ee394d4..610001a 100644 (file)
@@ -72,7 +72,7 @@ TYPO3.Form.Wizard.Elements.Basic.Textline = Ext.extend(TYPO3.Form.Wizard.Element
                                attributes: {
                                        accesskey: '',
                                        alt: '',
-                                       class: '',
+                                       "class": '',
                                        dir: '',
                                        disabled: '',
                                        id: '',
index 054f8f8..3713f85 100644 (file)
@@ -51,7 +51,7 @@ TYPO3.Form.Wizard.Elements.Content.Header = Ext.extend(TYPO3.Form.Wizard.Element
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       class: 'content-header',
+                                       "class": 'content-header',
                                        dir: '',
                                        id: '',
                                        lang: '',
index 1e915f9..53eed75 100644 (file)
@@ -51,7 +51,7 @@ TYPO3.Form.Wizard.Elements.Content.Textblock = Ext.extend(TYPO3.Form.Wizard.Elem
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       class: 'content-textblock',
+                                       "class": 'content-textblock',
                                        dir: '',
                                        id: '',
                                        lang: '',
index 286775b..2143936 100644 (file)
@@ -61,7 +61,7 @@ TYPO3.Form.Wizard.Elements.Predefined.CheckboxGroup = Ext.extend(TYPO3.Form.Wiza
                        },
                        configuration: {
                                attributes: {
-                                       class: 'fieldset-subgroup',
+                                       "class": 'fieldset-subgroup',
                                        dir: '',
                                        id: '',
                                        lang: '',
index 8790f43..20e4e6b 100644 (file)
@@ -14,7 +14,7 @@ TYPO3.Form.Wizard.Elements.Predefined.Name = Ext.extend(TYPO3.Form.Wizard.Elemen
                var config = {
                        configuration: {
                                attributes: {
-                                       class: 'predefined-name fieldset-subgroup fieldset-horizontal label-below',
+                                       "class": 'predefined-name fieldset-subgroup fieldset-horizontal label-below',
                                        dir: '',
                                        id: '',
                                        lang: '',
index 11623ab..66c5621 100644 (file)
@@ -61,7 +61,7 @@ TYPO3.Form.Wizard.Elements.Predefined.RadioGroup = Ext.extend(TYPO3.Form.Wizard.
                        },
                        configuration: {
                                attributes: {
-                                       class: 'fieldset-subgroup',
+                                       "class": 'fieldset-subgroup',
                                        dir: '',
                                        id: '',
                                        lang: '',