Fixed bug #8724: getElementsByClassName does not work properly in Firefox 3 and Safar...
authorOliver Hader <oliver.hader@typo3.org>
Sun, 22 Jun 2008 14:04:30 +0000 (14:04 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sun, 22 Jun 2008 14:04:30 +0000 (14:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3835 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/jsfunc.inline.js
typo3/js/browse_links.js

index 9107968..1aae496 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-22  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #8724: getElementsByClassName does not work properly in Firefox 3 and Safari 3.1 (thanks to Helmut Hummel)
+
 2008-06-21  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Added feature #8790: htmlArea RTE image selection should honour hooking browsers
index 0c43fcc..73e388e 100755 (executable)
@@ -504,8 +504,8 @@ var inline = {
                        if (!records[i].length) continue;
 
                        headerObj = $(objectPrefix+'['+records[i]+']_header');
-                       sortingObj[0] = Element.getElementsByClassName(headerObj, 'sortingUp');
-                       sortingObj[1] = Element.getElementsByClassName(headerObj, 'sortingDown');
+                       sortingObj[0] = Element.select(headerObj, '.sortingUp');
+                       sortingObj[1] = Element.select(headerObj, '.sortingDown');
 
                        if (sortingObj[0].length) {
                                sortingObj[0][0].style.visibility = (i == 0 ? 'hidden' : 'visible');
@@ -667,7 +667,7 @@ var inline = {
                        // Remove from TBE_EDITOR (required fields, required range, etc.):
                if (TBE_EDITOR && TBE_EDITOR.removeElement) {
                        var removeStack = [];
-                       inlineRecords = Element.getElementsByClassName(objectId+'_div', 'inlineRecord');
+                       inlineRecords = Element.select(objectId+'_div', '.inlineRecord');
                                // Remove nested child records from TBE_EDITOR required/range checks:
                        for (i=inlineRecords.length-1; i>=0; i--) {
                                if (inlineRecords[i].value.length) {
index 7592f19..a05e3b1 100755 (executable)
@@ -84,6 +84,6 @@ BrowseLinks.Selector = {
        },
        getItems: function(element) {
                element = this.getParentElement(element);
-               return Element.getElementsByClassName(element, 'typo3-bulk-item');
+               return Element.select(element, '.typo3-bulk-item');
        }
 };
\ No newline at end of file