Changeset 1360
- Timestamp:
- 2008-01-18 17:52:29 (2 years ago)
- Location:
- FCKeditor/branches/features/floating_dialog/editor/_source/internals
- Files:
-
- 2 modified
-
fckdomtools.js (modified) (1 diff)
-
fcktools.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdomtools.js
r1329 r1360 947 947 { 948 948 var currentElement = element ; 949 949 950 while ( currentElement != FCKTools.GetElementDocument( currentElement ).documentElement ) 950 951 { 951 952 var currentWindow = FCKTools.GetElementWindow( currentElement ) ; 953 952 954 if ( this.GetCurrentElementStyle( currentWindow, currentElement, 'position' ) != 'static' ) 953 955 return currentElement ; 954 if ( currentElement == FCKTools.GetElementDocument( currentElement ).documentElement && 955 currentWindow != w ) 956 957 if ( currentElement == FCKTools.GetElementDocument( currentElement ).documentElement 958 && currentWindow != w ) 956 959 currentElement = currentWindow.frameElement ; 957 960 else 958 961 currentElement = currentElement.parentNode ; 959 962 } 963 960 964 return null ; 961 965 }, -
FCKeditor/branches/features/floating_dialog/editor/_source/internals/fcktools.js
r1332 r1360 612 612 613 613 /** 614 * Utility function for binding the "this" reference to an object for a function.614 * Binding the "this" reference to an object for a function. 615 615 */ 616 616 FCKTools.Bind = function( subject, func ) … … 620 620 621 621 /** 622 * Retrieve the correct "empty iframe" URL for the current browser, which causes the 623 * minimum fuzz (e.g. security warnings in HTTPS, DNS error in IE5.5, etc.) for that 624 * browser, but updates the iframe. 622 * Retrieve the correct "empty iframe" URL for the current browser, which 623 * causes the minimum fuzz (e.g. security warnings in HTTPS, DNS error in 624 * IE5.5, etc.) for that browser, making the iframe ready to DOM use whithout 625 * having to loading an external file. 625 626 */ 626 627 FCKTools.GetVoidUrl = function() … … 629 630 return "javascript: void( function(){" + 630 631 "document.open();" + 631 "document.write('<html><head><title></title></head><body></body></html>');" + 632 "document.write('<html><head><title></title></head><body></body></html>');" + 632 633 "document.domain = '" + FCK_RUNTIME_DOMAIN + "';" + 633 634 "document.close();" + 634 635 "}() ) ;"; 636 635 637 if ( FCKBrowserInfo.IsIE ) 636 638 { 637 if ( FCKBrowserInfo.IsIE7 ) // IE7+ 638 return "" ; 639 else if ( FCKBrowserInfo.IsIE6 ) // IE6+ 640 return "javascript: '';" ; 641 else // IE5.5 642 return ""; 643 } 644 return "javascript: void(0);" ; 645 } 639 if ( FCKBrowserInfo.IsIE7 || !FCKBrowserInfo.IsIE6 ) 640 return "" ; // IE7+ / IE5.5 641 else 642 return "javascript: '';" ; // IE6+ 643 } 644 645 return "javascript: void(0);" ; // All other browsers. 646 }