Fixed bug #14808 tceforms.js slows down performance of IE dramatically (Thanks to...
authorSteffen Kamper <info@sk-typo3.de>
Mon, 21 Jun 2010 17:16:42 +0000 (17:16 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 21 Jun 2010 17:16:42 +0000 (17:16 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8012 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/js/extjs/tceforms.js

index 2f6cb67..8d26545 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@
 
 2010-06-21  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #14808 tceforms.js slows down performance of IE dramatically (Thanks to Jo Hasenau)
        * Fixed bug #14721: Flexform sections are unstyled and look weird
        * Fixed bug #11543: Shortcuts broken if current directory is not in include path (Thanks to Mads Chr. Olesen)
 
index 9c77d40..b917c41 100644 (file)
@@ -38,12 +38,12 @@ TYPO3.TCEFORMS = {
        },
 
        convertDateFieldsToDatePicker: function() {
-               var dateFields = Ext.select("*[id^=tceforms-datefield-], *[id^=tceforms-datetimefield-]");
+               var dateFields = Ext.select("input[id^=tceforms-date]");
                dateFields.each(function(element) {
                        var index = element.dom.id.match(/tceforms-datefield-/) ? 0 : 1;
                        var format = TYPO3.settings.datePickerUSmode ? TYPO3.settings.dateFormatUS : TYPO3.settings.dateFormat;
 
-                       var datepicker = Ext.get('picker-' + element.dom.id);
+                       var datepicker = element.next('span');
 
                        var menu = new Ext.menu.DateMenu({
                                id:                     'p' + element.dom.id,
@@ -73,7 +73,7 @@ TYPO3.TCEFORMS = {
        },
        
        convertTextareasResizable: function() {
-               var textAreas = Ext.select("*[id^=tceforms-textarea-]");
+               var textAreas = Ext.select("textarea[id^=tceforms-textarea-]");
                textAreas.each(function(element) {
                        if (TYPO3.settings.textareaFlexible) {
                                var elasticTextarea = new Ext.ux.elasticTextArea().applyTo(element.dom.id, {