Changeset 269 for trunk

Show
Ignore:
Timestamp:
12/12/08 14:07:54 (12 months ago)
Author:
sup
Message:

LJSUP-3353: Syndicate my content, phase 1 - JS fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ippu.js

    r267 r269  
    164164    // don't do anything if inside the popup 
    165165    if (DOM.getAncestorsByClassName(target, "ippu", true).length > 0) return; 
    166  
    167166    this.cancel(); 
    168167  }, 
     
    175174    if (this.cancelledCallback) 
    176175      this.cancelledCallback(); 
    177  
    178176    this.hide(); 
    179177  }, 
     
    184182 
    185183  setupClickCapture : function () { 
    186     if (!this.visible() || this.clickHandlerSetup) return; 
    187     if (!this.clickToClose && !this.modal) return; 
     184    if (!this.visible() || this.clickHandlerSetup){return;} 
     185    if (!this.clickToClose && !this.modal) {return;} 
    188186 
    189187    this.clickHandlerFunc = this.clickHandler.bindEventListener(this); 
     
    192190      // create document-sized div to capture events 
    193191      if (this.overlay) return; // wtf? shouldn't exist yet 
    194  
    195192      this.overlay = document.createElement("div"); 
    196       this.overlay.style.position = "fixed"; 
    197193      this.overlay.style.left = "0px"; 
    198194      this.overlay.style.top = "0px"; 
    199195      this.overlay.style.margin = "0px"; 
    200196      this.overlay.style.padding = "0px"; 
     197       
    201198      this.overlay.style.backgroundColor = "#000000"; 
     199      this.overlay.style.zIndex="900"; 
     200      if (IPPU.isIE()){ 
     201                this.overlay.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=50)"; 
     202                this.overlay.style.position="absolute"; 
     203                this.overlay.style.width=document.body.scrollWidth; 
     204                this.overlay.style.height=document.body.scrollHeight; 
     205      } 
     206      else{ 
     207        this.overlay.style.position = "fixed"; 
     208      } 
    202209 
    203210      this.ele.parentNode.insertBefore(this.overlay, this.ele); 
     
    217224      var cd = DOM.getClientDimensions(); 
    218225      this.overlay.style.width = (cd.x - 1) + "px"; 
    219       this.overlay.style.height = (cd.y - 1) + "px"; 
    220  
     226      if(!IPPU.isIE()){ 
     227        this.overlay.style.height = (cd.y - 1) + "px"; 
     228      }  
    221229      if (this.visibleOverlay) { 
    222230        this.overlay.backgroundColor = "#000000"; 
     
    420428    var cd = DOM.getClientDimensions(); 
    421429    var newtop = cd.y / 2 - DOM.getDimensions(this.ele).offsetHeight / 2; 
     430 
    422431    // If not fixed position, center relative to the top of the page 
    423432    if (!this.fixedPosition) {