Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4923

Show
Ignore:
Timestamp:
09/03/06 19:11:46 (2 years ago)
Author:
madrobby
Message:

script.aculo.us: Fix various issues with IE detection and Opera, and setOpacity, fixes #3886, #5973

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/scriptaculous/CHANGELOG

    r4921 r4923  
    11*SVN* 
     2 
     3* Fix various issues with IE detection and Opera, and setOpacity, fixes #3886, #5973 
    24 
    35* Make Sortable.serialize handle DOM IDs like "some_element_1" correctly, fixes #5324 
  • spinoffs/scriptaculous/src/effects.js

    r4802 r4923  
    6060    Element.setStyle(element, { opacity:  
    6161      (/Gecko/.test(navigator.userAgent) && !/Konqueror|Safari|KHTML/.test(navigator.userAgent)) ?  
    62       0.999999 : null }); 
    63     if(/MSIE/.test(navigator.userAgent))   
     62      0.999999 : 1.0 }); 
     63    if(/MSIE/.test(navigator.userAgent) && !window.opera)   
    6464      Element.setStyle(element, {filter: Element.getStyle(element,'filter').replace(/alpha\([^\)]*\)/gi,'')});   
    6565  } else {   
    6666    if(value < 0.00001) value = 0;   
    6767    Element.setStyle(element, {opacity: value}); 
    68     if(/MSIE/.test(navigator.userAgent))   
     68    if(/MSIE/.test(navigator.userAgent) && !window.opera)   
    6969     Element.setStyle(element,  
    7070       { filter: Element.getStyle(element,'filter').replace(/alpha\([^\)]*\)/gi,'') + 
     
    114114       
    115115    var tagifyStyle = 'position:relative'; 
    116     if(/MSIE/.test(navigator.userAgent)) tagifyStyle += ';zoom:1'; 
     116    if(/MSIE/.test(navigator.userAgent) && !window.opera) tagifyStyle += ';zoom:1'; 
    117117    element = $(element); 
    118118    $A(element.childNodes).each( function(child) { 
     
    361361    if(!this.element) throw(Effect._elementDoesNotExistError); 
    362362    // make this work on IE on elements without 'layout' 
    363     if(/MSIE/.test(navigator.userAgent) && (!this.element.currentStyle.hasLayout)) 
     363    if(/MSIE/.test(navigator.userAgent) && !window.opera && (!this.element.currentStyle.hasLayout)) 
    364364      this.element.setStyle({zoom: 1}); 
    365365    var options = Object.extend({ 
     
    736736      effect.element.undoClipping();  
    737737      // IE will crash if child is undoPositioned first 
    738       if(/MSIE/.test(navigator.userAgent)){ 
     738      if(/MSIE/.test(navigator.userAgent) && !window.opera){ 
    739739        effect.element.undoPositioned(); 
    740740        effect.element.firstChild.undoPositioned();