Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 55066 invoked from network); 12 Oct 2007 00:37:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Oct 2007 00:37:12 -0000 Received: (qmail 59851 invoked by uid 500); 12 Oct 2007 00:36:59 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 59691 invoked by uid 500); 12 Oct 2007 00:36:58 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 59680 invoked by uid 99); 12 Oct 2007 00:36:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 17:36:58 -0700 X-ASF-Spam-Status: No, hits=-97.2 required=10.0 tests=ALL_TRUSTED,WEIRD_QUOTING X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 00:37:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 969DD1A9846; Thu, 11 Oct 2007 17:36:17 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r583998 [3/4] - /portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget/ Date: Fri, 12 Oct 2007 00:36:13 -0000 To: jetspeed-dev@portals.apache.org From: smilek@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071012003617.969DD1A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget/PortletWindow.js URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget/PortletWindow.js?rev=583998&r1=583997&r2=583998&view=diff ============================================================================== --- portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget/PortletWindow.js (original) +++ portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget/PortletWindow.js Thu Oct 11 17:36:12 2007 @@ -3,16 +3,13 @@ jetspeed.widget.PortletWindow=function(){ this.windowInitialized=false; this.actionButtons={}; -this.actionMenus={}; this.actionMenuWidget=null; this.tooltips=[]; -this.subWidgetStartIndex=-1; -this.subWidgetEndIndex=-1; this._onLoadStack=[]; this._onUnloadStack=[]; this._callOnUnload=false; }; -dojo.extend(jetspeed.widget.PortletWindow,{title:"",nextIndex:1,resizable:true,movable:true,decName:null,decConfig:null,posStatic:false,heightToFit:false,titleMouseIn:0,titleLit:false,portlet:null,altInitParams:null,inContentChgd:false,exclPContent:false,minimizeTempRestore:null,executeScripts:false,scriptSeparation:false,adjustPaths:false,parseContent:true,dbProfile:(djConfig.isDebug&&jetspeed.debug.profile),dbOn:djConfig.isDebug,dbMenuDims:"Dump Dimensions",altInitParamsDef:function(_1,_2){ +dojo.extend(jetspeed.widget.PortletWindow,{title:"",nextIndex:1,resizable:true,moveable:true,moveAllowTilingChg:true,decName:null,decConfig:null,posStatic:false,heightToFit:false,titleMouseIn:0,titleLit:false,colWidth_pbE:0,portlet:null,altInitParams:null,inContentChgd:false,exclPContent:false,minimizeTempRestore:null,executeScripts:false,scriptSeparation:false,adjustPaths:false,parseContent:true,childWidgets:null,dbProfile:(djConfig.isDebug&&jetspeed.debug.profile),dbOn:djConfig.isDebug,dbMenuDims:"Dump Dimensions",altInitParamsDef:function(_1,_2){ if(!_1){ _1={getProperty:function(_3){ if(!_3){ @@ -137,6 +134,11 @@ } this.domNode=_1c; var _23=_d.cssPosition.concat(); +if(_c.maximizedOnInit!=null){ +_23[_d.cssNoSelNm]=" visibility: "; +_23[_d.cssNoSel]="hidden"; +_23[_d.cssNoSelEnd]=";"; +} this.dNodeCss=_23; this.containerNode=_1d; var _24=_d.cssOverflow.concat(); @@ -160,29 +162,29 @@ _2a=iP[_a.PP_TOP]; } var _2c={}; -var _2d={width:null}; +var _2d={w:null}; if(_27!=null&&_27>0){ -_2c.width=_27=Math.floor(_27); +_2c.w=_27=Math.floor(_27); }else{ -_2c.width=_27=_b.windowWidth; +_2c.w=_27=_b.windowWidth; } if(_28!=null&&_28>0){ -_2c.height=_2d.height=_28=Math.floor(_28); +_2c.h=_2d.h=_28=Math.floor(_28); }else{ -_2c.height=_2d.height=_28=_b.windowHeight; +_2c.h=_2d.h=_28=_b.windowHeight; } if(_29!=null&&_29>=0){ -_2c.left=Math.floor(_29); +_2c.l=Math.floor(_29); }else{ if(!_25){ -_2c.left=(((_12-2)*30)+200); +_2c.l=(((_12-2)*30)+200); } } if(_2a!=null&&_2a>=0){ -_2c.top=Math.floor(_2a); +_2c.t=Math.floor(_2a); }else{ if(!_25){ -_2c.top=(((_12-2)*30)+170); +_2c.t=(((_12-2)*30)+170); } } this.dimsUntiled=_2c; @@ -227,154 +229,96 @@ } var _30=null; var _31=_11.event; -var _32,aNm; -var _34=new Array(); -var _35=false; -if(wDC.windowActionButtonOrder!=null){ -var _36=new Array(); -if(_15){ -for(var aI=(wDC.windowActionButtonOrder.length-1);aI>=0;aI--){ -aNm=wDC.windowActionButtonOrder[aI]; -_32=false; -if(_15.getAction(aNm)!=null||_b.windowActionDesktop[aNm]!=null){ -_32=true; -}else{ -if(aNm==_a.ACT_RESTORE||aNm==_a.ACT_MENU){ -_32=true; -} -} -if(_32){ -_36.push(aNm); -} -} -}else{ -for(var aI=(wDC.windowActionButtonOrder.length-1);aI>=0;aI--){ -aNm=wDC.windowActionButtonOrder[aI]; -_32=false; -if(aNm==_a.ACT_MINIMIZE||aNm==_a.ACT_MAXIMIZE||aNm==_a.ACT_RESTORE||aNm==_a.ACT_MENU||_b.windowActionDesktop[aNm]!=null){ -_32=true; -} -if(_32){ -_36.push(aNm); -} -} -} -var _38=(wDC.windowActionButtonMax==null?-1:wDC.windowActionButtonMax); -if(_38!=-1&&_36.length>=_38){ -var _39=0; -var _3a=_36.length-_38+1; -for(var i=0;i<_36.length&&_39<_3a;i++){ -if(_36[i]!=_a.ACT_MENU){ -_34.push(_36[i]); -_36[i]=null; -_39++; -} -} -} -if(wDC.windowActionNoImage){ -for(var i=0;i<_36.length;i++){ -if(wDC.windowActionNoImage[_36[i]]!=null){ -if(_36[i]==_a.ACT_MENU){ -_35=true; -}else{ -_34.push(_36[i]); +var _32=_c.tooltipMgr; +if(wDC.windowActionButtonTooltip){ +if(this.actionLabels[_a.ACT_DESKTOP_MOVE_TILED]!=null&&this.actionLabels[_a.ACT_DESKTOP_MOVE_UNTILED]!=null){ +this.tooltips.push(_32.addNode(_1e,null,true,1200,this,"getTitleBarTooltip",_9,_e,_31)); } -_36[i]=null; } +var _33=(_15)?wDC.windowActionButtonNames:wDC.windowActionButtonNamesNp; +if(_33==null){ +_33=this._buildActionStructures(wDC,_15,_10,_9,_a,_b,_11); +} +var aNm; +for(var i=0;i<_33.length;i++){ +aNm=_33[i]; +if(aNm!=null){ +if(!_15||(aNm==_a.ACT_RESTORE||aNm==_a.ACT_MENU||_15.getAction(aNm)!=null||_b.windowActionDesktop[aNm]!=null)){ +this._createActionButtonNode(aNm,_f,_10,_32,wDC,_9,_b,_e,_11,_31); } } -var _3c=_c.tooltipMgr; -for(var i=0;i<_36.length;i++){ -if(_36[i]!=null){ -this._createActionButtonNode(_36[i],_f,_10,_3c,_9,_b,_e,_31); } +this.actionMenuWidget=(_15)?wDC.windowActionMenuWidget:wDC.windowActionMenuWidgetNp; +if(this.actionMenuWidget&&wDC.windowActionMenuHasNoImg){ +_e.evtConnect("after",_1e,"oncontextmenu",this,"actionMenuOpen",_31); } +this.actionBtnSync(_9,_a); +if(wDC.windowDisableResize){ +this.resizable=false; } -if(wDC.windowActionMenuOrder){ -if(_15){ -for(var aI=0;aI0||this.dbOn){ -var _3d=new Object(); -var _3e=new Array(); -for(var i=0;i<_34.length;i++){ -aNm=_34[i]; -if(aNm!=null&&_3d[aNm]==null&&this.actionButtons[aNm]==null){ -_3e.push(aNm); -_3d[aNm]=true; -} -} -if(this.dbOn){ -_3e.push({aNm:this.dbMenuDims,dev:true}); -} -if(_3e.length>0){ -this._createActionMenu(_3e,_10); -if(_35){ -_e.evtConnect("after",_1e,"oncontextmenu",this,"windowActionMenuOpen",_31); -} -} -} -this.windowActionButtonSync(); -if(wDC.windowDisableResize){ this.resizable=false; } -if(wDC.windowDisableMove){ -this.movable=false; +_10.removeChild(_1c); +var _39=false; +var _3a=_8.childNodes; +if(_25&&_3a){ +var _3b=iP[_a.PP_ROW]; +if(_3b!=null){ +var _3c=new Number(_3b); +if(_3c>=0){ +var _3d=_3a.length-1; +if(_3d>=_3c){ +var _3e=_3a[_3c]; +if(_3e){ +_8.insertBefore(_1c,_3e); +_39=true; } } -var _3f=this.resizable; -var _40=null; -if(_3f&&_1f){ -var _41=_17+"_resize"; -var _40=_9.widget.CreatePortletWindowResizeHandler(this,_9); -this.resizeHandle=_40; -if(_40){ -_40.domNode.style.position="static"; -_1f.appendChild(_40.domNode); } -}else{ -this.resizable=false; } -if(ie6){ -this.bgIframe=new _11.html.BackgroundIframe(_1c); } -_10.removeChild(_1c); +if(!_39){ _8.appendChild(_1c); -if(!wDC.layoutExtents){ -var _42="display: block; width: "+_27+"px"+((_28!=null&&_28>0)?("; height: "+_28+"px"):""); -_1c.style.cssText=_42; -this._createLayoutExtents(wDC,false,_1c,_1d,_1e,_1f,_11,_9); } -if(this.movable&&_1e){ +if(!wDC.layout){ +var _3f="display: block; visibility: hidden; width: "+_27+"px"+((_28!=null&&_28>0)?("; height: "+_28+"px"):""); +_1c.style.cssText=_3f; +this._createLayoutInfo(wDC,false,_1c,_1d,_1e,_1f,_11,_9,_e); +} +if(this.moveable&&_1e){ this.drag=new _11.dnd.Moveable(this,{handle:_1e}); this._setTitleBarDragging(true,_d); } +if(ie6&&_25){ +_2d.w=Math.max(0,_8.offsetWidth-this.colWidth_pbE); +} this._setAsTopZIndex(_c,_d,_23,_25); this._alterCss(true,true); if(!_25){ this._addUntiledEvents(); } +if(ie6){ +this.bgIframe=new _9.widget.BackgroundIframe(_1c,null,_11); +} this.windowInitialized=true; if(_9.debug.createWindow){ _11.debug("createdWindow ["+(_15?_15.entityId:_17)+(_15?(" / "+_17):"")+"]"+" width="+_1c.style.width+" height="+_1c.style.height+" left="+_1c.style.left+" top="+_1c.style.top); } +this.windowState=_a.ACT_RESTORE; var iWS=null; if(_15){ iWS=_15.getCurrentActionState(); @@ -382,220 +326,294 @@ iWS=iP[_a.PP_WINDOW_STATE]; } if(iWS==_a.ACT_MINIMIZE){ -this.minimizeWindow(); -this.windowActionButtonSync(); -this.needsRenderOnRestore=true; -}else{ -if(iWS==_a.ACT_MAXIMIZE){ -_11.lang.setTimeout(this,this._postCreateMaximizeWindow,1500); +this.minimizeOnNextRender=true; } +if(_9.widget.pwGhost==null&&_c!=null){ +var _41=_f.createElement("div"); +_41.id="pwGhost"; +var _42=_c.getPortletDecorationDefault(); +if(!_42){ +_42=_18; +} +_41.className=_1a; +_41.style.position="static"; +_41.style.width=""; +_41.style.left="auto"; +_41.style.top="auto"; +_9.widget.pwGhost=_41; } if(ie6&&_9.widget.ie6ZappedContentHelper==null){ -var _44=_f.createElement("span"); -_44.id="ie6ZappedContentHelper"; -_9.widget.ie6ZappedContentHelper=_44; +var _43=_f.createElement("span"); +_43.id="ie6ZappedContentHelper"; +_9.widget.ie6ZappedContentHelper=_43; +} +},_buildActionStructures:function(wDC,_45,_46,_47,_48,_49,_4a){ +var _4b=new Array(); +var aNm,_4d,_4e=false; +var _4f=new Array(); +var _50=new Object(); +if(wDC.windowActionButtonOrder!=null){ +if(_45){ +for(var aI=(wDC.windowActionButtonOrder.length-1);aI>=0;aI--){ +aNm=wDC.windowActionButtonOrder[aI]; +_4b.push(aNm); +_50[aNm]=true; } -if(_9.widget.pwGhost==null&&_c!=null){ -var _45=_f.createElement("div"); -_45.id="pwGhost"; -var _46=_c.getPortletDecorationDefault(); -if(!_46){ -_46=_18; -} -_45.className=_a.P_CLASS+(_46?(" "+_46):"")+" "+_1a; -_45.style.position="static"; -_45.style.width=""; -_45.style.left="auto"; -_45.style.top="auto"; -_9.widget.pwGhost=_45; +}else{ +for(var aI=(wDC.windowActionButtonOrder.length-1);aI>=0;aI--){ +aNm=wDC.windowActionButtonOrder[aI]; +_4d=false; +if(aNm==_48.ACT_MINIMIZE||aNm==_48.ACT_MAXIMIZE||aNm==_48.ACT_RESTORE||aNm==_48.ACT_MENU||_49.windowActionDesktop[aNm]!=null){ +_4d=true; +} +if(_4d){ +_4b.push(aNm); +_50[aNm]=true; } -},_createActionButtonNode:function(aNm,doc,_49,_4a,_4b,_4c,_4d,_4e){ -if(aNm!=null){ -var _4f=doc.createElement("div"); -_4f.className="portletWindowActionButton"; -_4f.style.backgroundImage="url("+_4c.getPortletDecorationBaseUrl(this.decName)+"/images/desktop/"+aNm+".gif)"; -_4f.actionName=aNm; -this.actionButtons[aNm]=_4f; -this.tbNode.appendChild(_4f); -_4d.evtConnect("after",_4f,"onclick",this,"windowActionButtonClick",_4e); -if(this.decConfig!=null&&this.decConfig.windowActionButtonTooltip){ -this.tooltips.push(_4a.addNode(_4f,this._getActionLabel(aNm),true,_4b,_4d,_4e)); +} +} +var _52=(wDC.windowActionButtonMax==null?-1:wDC.windowActionButtonMax); +if(_52!=-1&&_4b.length>=_52){ +var _53=0; +var _54=_4b.length-_52+1; +for(var i=0;i<_4b.length&&_53<_54;i++){ +aNm=_4b[i]; +if(aNm!=_48.ACT_MENU){ +_4f.push(aNm); +_4b[i]=null; +delete _50[aNm]; +_53++; +} +} +} +if(wDC.windowActionNoImage){ +for(var i=0;i<_4b.length;i++){ +aNm=_4b[i]; +if(wDC.windowActionNoImage[aNm]!=null){ +if(aNm==_48.ACT_MENU){ +_4e=true; }else{ -_4d.evtConnect("after",_4f,"onmousedown",_4e.browser,"stopEvent",_4e); +_4f.push(aNm); } +_4b[i]=null; +delete _50[aNm]; } -},_getActionLabel:function(aNm){ -if(aNm==null){ -return null; } -var _51=null; -var _52=jetspeed.prefs.desktopActionLabels; -if(_52!=null){ -_51=_52[aNm]; } -if(_51==null||_51.length==0){ -if(this.portlet){ -var _53=this.portlet.getAction(aNm); -if(_53!=null){ -_51=_53.label; } +if(wDC.windowActionMenuOrder){ +if(_45){ +for(var aI=0;aI0||this.dbOn){ +var _57=new Object(); +for(var i=0;i<_4f.length;i++){ +aNm=_4f[i]; +if(aNm!=null&&_57[aNm]==null&&_50[aNm]==null){ +_56.push(aNm); +_57[aNm]=true; +} +} +if(this.dbOn){ +_56.push({aNm:this.dbMenuDims,dev:true}); +} +} +var _58=null; +if(_56.length>0){ +var _59={}; +var aNm,_5a,_5b,_5c; +_58=_4a.widget.createWidget("PopupMenu2",{id:this.widgetId+"_ctxmenu",contextMenuForWindow:false},null); +_58.onItemClick=function(mi){ var _aN=mi.jsActNm; +var _5f=this.pWin; if(!mi.jsActDev){ -_56.windowActionProcess(_aN); +_5f.actionProcess(_aN); }else{ -_56.windowActionProcessDev(_aN); +_5f.actionProcessDev(_aN); } }; -var _5e=dojo.widget.createWidget("PopupMenu2",{id:this.widgetId+"_ctxmenu",contextMenuForWindow:false,onItemClick:_5b},null); -for(var i=0;i<_54.length;i++){ -aNm=_54[i]; -_5a=false; +for(var i=0;i<_56.length;i++){ +aNm=_56[i]; +_5c=false; if(!aNm.dev){ -_58=this._getActionLabel(aNm); +_5a=this.actionLabels[aNm]; }else{ -_5a=true; -_58=aNm=aNm.aNm; +_5c=true; +_5a=aNm=aNm.aNm; } -_59=dojo.widget.createWidget("MenuItem2",{caption:_58,jsActNm:aNm,jsActDev:_5a}); -this.actionMenus[aNm]=_59; -_5e.addChild(_59); -} -_55.appendChild(_5e.domNode); -this.actionMenuWidget=_5e; -},_createLayoutExtents:function(_60,_61,_62,_63,_64,_65,_66,_67){ -var _68=_66.gcs(_62); -var _69=_66.gcs(_63); -var _6a=null,_6b=null; -var _6c={dNode:this._createNodeLEs(_62,_68,_66,_67),cNode:this._createNodeLEs(_63,_69,_66,_67)}; -if(_64){ -_6a=_66.gcs(_64); -_6c.tbNode=this._createNodeLEs(_64,_6a,_66,_67); -var _6d=_6a.cursor; -if(_6d==null||_6d.length==0){ -_6d="move"; -} -_60.dragCursor=_6d; -} -if(_65){ -_6b=_66.gcs(_65); -_6c.rbNode=this._createNodeLEs(_65,_6b,_66,_67); -} -var _6e=_66.getMarginBox(_62,_68,_67); -var _6f=_66.getContentBox(_62,_68,_67); -_6c.lostHeight=(_6e.h-_6f.h)+(_64?_66.getMarginBox(_64,_6a,_67).h:0)+(_65?_66.getMarginBox(_65,_6b,_67).h:0); -_6c.lostWidth=_6e.w-_6f.w; -if(!_61){ -_60.layoutExtents=_6c; -}else{ -_60.layoutExtentsIFrame=_6c; -} -},testLost:function(){ -var _70=dojo; -var _71=jetspeed; -var _72=this.domNode; -var _73=this.tbNode; -var _74=this.rbNode; -var _75=_70.gcs(_72); -var _76=_70.gcs(_73); -var _77=_70.gcs(_74); -var _78=_70.getMarginBox(_72,_75,_71); -var _79=_70.getContentBox(_72,_75,_71); -var _7a=_70.getMarginBox(_73,_76,_71); -var _7b=_70.getMarginBox(_74,_77,_71); -var _7c={id:this.widgetId,dMBw:_78.w,dMBh:_78.h,dCBw:_79.h,dCBh:_79.w,tbMBh:_7a.h,rbMBh:_7b.h,dNodePos:_75.position,dNodeDis:_75.display,dNodeWidth:_75.width,dNodeHeight:_75.height}; -_7c.lostHeight=(_78.h-_79.h)+(_73?_70.getMarginBox(_73,_76,_71).h:0)+(_74?_70.getMarginBox(_74,_77,_71).h:0); -_7c.lostWidth=_78.w-_79.w; -var _7d=jetspeed.printobj(_7c); -if(jetspeed.lostFirst==null){ -jetspeed.lostFirst=_7d; -} -return _7d; -},_createNodeLEs:function(_7e,_7f,_80,_81){ -var _82=_80._getPadBorderExtents(_7e,_7f); -var _83=_80._getMarginExtents(_7e,_7f,_81); -return {padborder:_82,margin:_83,lessW:(_82.w+_83.w),lessH:(_82.h+_83.h)}; -},windowActionButtonClick:function(evt){ -if(evt==null||evt.target==null){ -return; +_5b=_4a.widget.createWidget("MenuItem2",{caption:_5a,jsActNm:aNm,jsActDev:_5c}); +_59[aNm]=_5b; +_58.addChild(_5b); +} +_58.menuItemsByName=_59; +_46.appendChild(_58.domNode); +_47.ui.addPopupMenuWidget(_58); +} +wDC.windowActionMenuHasNoImg=_4e; +if(_45){ +wDC.windowActionButtonNames=_4b; +wDC.windowActionMenuNames=_56; +wDC.windowActionMenuWidget=_58; +}else{ +wDC.windowActionButtonNamesNp=_4b; +wDC.windowActionMenuNamesNp=_56; +wDC.windowActionMenuWidgetNp=_58; } -this.windowActionProcess(evt.target.actionName,evt); -},windowActionMenuOpen:function(evt){ -var _86=null; -var _87=null; -if(this.portlet){ -_86=this.portlet.getCurrentActionState(); -_87=this.portlet.getCurrentActionMode(); +return _4b; +},_createActionButtonNode:function(aNm,doc,_62,_63,wDC,_65,_66,_67,_68,_69){ +if(aNm!=null){ +var _6a=doc.createElement("div"); +_6a.className="portletWindowActionButton"; +_6a.style.backgroundImage="url("+_66.getPortletDecorationBaseUrl(this.decName)+"/images/desktop/"+aNm+".gif)"; +_6a.actionName=aNm; +this.actionButtons[aNm]=_6a; +this.tbNode.appendChild(_6a); +_67.evtConnect("after",_6a,"onclick",this,"actionBtnClick",_69); +if(wDC.windowActionButtonTooltip){ +var _6b=this.actionLabels[aNm]; +this.tooltips.push(_63.addNode(_6a,_6b,true,null,null,null,_65,_67,_69)); +}else{ +_67.evtConnect("after",_6a,"onmousedown",_65,"_stopEvent",_69); +} +} +},getTitleBarTooltip:function(){ +if(!this.getLayoutActionsEnabled()){ +return null; } -for(var aNm in this.actionMenus){ -var _89=this.actionMenus[aNm]; -if(this._isWindowActionEnabled(aNm,_86,_87)){ -_89.domNode.style.display=""; +if(this.posStatic){ +return this.actionLabels[jetspeed.id.ACT_DESKTOP_MOVE_TILED]; +}else{ +return this.actionLabels[jetspeed.id.ACT_DESKTOP_MOVE_UNTILED]; +} +},_createLayoutInfo:function(_6c,_6d,_6e,_6f,_70,_71,_72,_73,_74){ +var _75=_72.gcs(_6e); +var _76=_72.gcs(_6f); +var _77=_74.getLayoutExtents(_6e,_75,_72,_73); +var _78=_74.getLayoutExtents(_6f,_76,_72,_73); +var _79={dNode:_77,cNode:_78}; +var _7a=Math.max(0,_78.mE.t); +var _7b=Math.max(0,_78.mE.h-_78.mE.t); +var _7c=0; +var _7d=0; +var _7e=null; +if(_70){ +var _7f=_72.gcs(_70); +_7e=_74.getLayoutExtents(_70,_7f,_72,_73); +var _80=_7f.cursor; +if(_80==null||_80.length==0){ +_80="move"; +} +_6c.dragCursor=_80; +_7e.mBh=_72.getMarginBox(_70,_7f,_73).h; +var _81=Math.max(0,_7e.mE.h-_7e.mE.t); +_7c=(_7e.mBh-_81)+Math.max(0,(_81-_7a)); +_79.tbNode=_7e; +} +var _82=null; +if(_71){ +var _83=_72.gcs(_71); +_82=_74.getLayoutExtents(_71,_83,_72,_73); +_82.mBh=_72.getMarginBox(_71,_83,_73).h; +var _84=Math.max(0,_82.mE.t); +_7d=(_82.mBh-_84)+Math.max(0,(_84-_7b)); +_79.rbNode=_82; +} +_79.cNode_mBh_LessBars=_7c+_7d; +if(!_6d){ +_6c.layout=_79; }else{ -_89.domNode.style.display="none"; +_6c.layoutIFrame=_79; +} +},actionBtnClick:function(evt){ +if(evt==null||evt.target==null){ +return; } +this.actionProcess(evt.target.actionName,evt); +},actionMenuOpen:function(evt){ +var _87=jetspeed; +var _88=_87.id; +var _89=this.actionMenuWidget; +if(!_89){ +return; } -this.actionMenuWidget.onOpen(evt); -},windowActionProcessDev:function(aNm,evt){ -if(aNm==this.dbMenuDims){ -this.dumpPos(); +if(_89.isShowingNow){ +_89.close(); } -},windowActionProcess:function(aNm,evt){ -var _8e=jetspeed; -var _8f=_8e.id; +var _8a=null; +var _8b=null; +if(this.portlet){ +_8a=this.portlet.getCurrentActionState(); +_8b=this.portlet.getCurrentActionMode(); +} +var _8c=_89.menuItemsByName; +var _8d,_8e; +for(var aNm in _8c){ +_8d=_8c[aNm]; +_8e=(this._isActionEnabled(aNm,_8a,_8b,_87,_88))?"":"none"; +_8d.domNode.style.display=_8e; +} +_89.pWin=this; +_89.onOpen(evt); +},actionProcessDev:function(aNm,evt){ +if(aNm==this.dbMenuDims&&jetspeed.debugPWinPos){ +jetspeed.debugPWinPos(this); +} +},actionProcess:function(aNm,evt){ +var _94=jetspeed; +var _95=_94.id; if(aNm==null){ return; } -if(_8e.prefs.windowActionDesktop[aNm]!=null){ -if(aNm==_8f.ACT_DESKTOP_TILE){ +if(_94.prefs.windowActionDesktop[aNm]!=null){ +if(aNm==_95.ACT_DESKTOP_TILE){ this.makeTiled(); }else{ -if(aNm==_8f.ACT_DESKTOP_UNTILE){ +if(aNm==_95.ACT_DESKTOP_UNTILE){ this.makeUntiled(); }else{ -if(aNm==_8f.ACT_DESKTOP_HEIGHT_EXPAND){ +if(aNm==_95.ACT_DESKTOP_HEIGHT_EXPAND){ this.makeHeightToFit(false); }else{ -if(aNm==_8f.ACT_DESKTOP_HEIGHT_NORMAL){ +if(aNm==_95.ACT_DESKTOP_HEIGHT_NORMAL){ this.makeHeightVariable(false,false); } } } } }else{ -if(aNm==_8f.ACT_MENU){ -this.windowActionMenuOpen(evt); +if(aNm==_95.ACT_MENU){ +this.actionMenuOpen(evt); }else{ -if(aNm==_8f.ACT_MINIMIZE){ -if(this.portlet&&this.windowState==_8f.ACT_MAXIMIZE){ +if(aNm==_95.ACT_MINIMIZE){ +if(this.portlet&&this.windowState==_95.ACT_MAXIMIZE){ this.needsRenderOnRestore=true; } this.minimizeWindow(); if(this.portlet){ -_8e.changeActionForPortlet(this.portlet.getId(),_8f.ACT_MINIMIZE,null); +_94.changeActionForPortlet(this.portlet.getId(),_95.ACT_MINIMIZE,null); } if(!this.portlet){ -this.windowActionButtonSync(); +this.actionBtnSyncDefer(); } }else{ -if(aNm==_8f.ACT_RESTORE){ -var _90=false; +if(aNm==_95.ACT_RESTORE){ +var _96=false; if(this.portlet){ -if(this.windowState==_8f.ACT_MAXIMIZE||this.needsRenderOnRestore){ +if(this.windowState==_95.ACT_MAXIMIZE||this.needsRenderOnRestore){ if(this.needsRenderOnRestore){ -_90=true; +_96=true; this.restoreOnNextRender=true; this.needsRenderOnRestore=false; } @@ -604,17 +622,17 @@ } this.portlet.renderAction(aNm); }else{ -_8e.changeActionForPortlet(this.portlet.getId(),_8f.ACT_RESTORE,null); +_94.changeActionForPortlet(this.portlet.getId(),_95.ACT_RESTORE,null); } } -if(!_90){ +if(!_96){ this.restoreWindow(); } if(!this.portlet){ -this.windowActionButtonSync(); +this.actionBtnSyncDefer(); } }else{ -if(aNm==_8f.ACT_MAXIMIZE){ +if(aNm==_95.ACT_MAXIMIZE){ if(this.portlet&&this.iframesInfo){ this.iframesInfo.iframesSize=[]; } @@ -622,14 +640,14 @@ if(this.portlet){ this.portlet.renderAction(aNm); }else{ -this.windowActionButtonSync(); +this.actionBtnSync(_94,_95); } }else{ -if(aNm==_8f.ACT_REMOVEPORTLET){ +if(aNm==_95.ACT_REMOVEPORTLET){ if(this.portlet){ -var _91=dojo.widget.byId(_8f.PG_ED_WID); -if(_91!=null){ -_91.deletePortlet(this.portlet.entityId,this.title); +var _97=dojo.widget.byId(_95.PG_ED_WID); +if(_97!=null){ +_97.deletePortlet(this.portlet.entityId,this.title); } } }else{ @@ -642,47 +660,49 @@ } } } -},_isWindowActionEnabled:function(aNm,_93,_94){ -var _95=jetspeed; -var _96=_95.id; -var _97=false; +},_isActionEnabled:function(aNm,_99,_9a,_9b,_9c){ +var _9b=jetspeed; +var _9c=_9b.id; +var _9d=false; +var _9e=this.windowState; if(this.minimizeTempRestore!=null){ if(this.portlet){ -var _98=this.portlet.getAction(aNm); -if(_98!=null){ -if(_98.id==_96.ACT_REMOVEPORTLET){ -if(_95.page.editMode&&this.getLayoutActionsEnabled()){ -_97=true; +var _9f=this.portlet.getAction(aNm); +if(_9f!=null){ +if(_9f.id==_9c.ACT_REMOVEPORTLET){ +if(_9b.page.editMode&&this.getLayoutActionsEnabled()){ +_9d=true; } } } } }else{ -if(aNm==_96.ACT_MENU){ -if(!this._windowActionMenuIsEmpty()){ -_97=true; +if(aNm==_9c.ACT_MENU){ +if(!this._actionMenuIsEmpty(_9b,_9c)){ +_9d=true; } }else{ -if(_95.prefs.windowActionDesktop[aNm]!=null){ +if(_9b.prefs.windowActionDesktop[aNm]!=null){ if(this.getLayoutActionsEnabled()){ -if(aNm==_96.ACT_DESKTOP_HEIGHT_EXPAND){ -if(!this.heightToFit){ -_97=true; +var _a0=(this.ie6&&_9e==_9c.ACT_MINIMIZE); +if(aNm==_9c.ACT_DESKTOP_HEIGHT_EXPAND){ +if(!this.heightToFit&&!_a0){ +_9d=true; } }else{ -if(aNm==_96.ACT_DESKTOP_HEIGHT_NORMAL){ -if(this.heightToFit){ -_97=true; +if(aNm==_9c.ACT_DESKTOP_HEIGHT_NORMAL){ +if(this.heightToFit&&!_a0){ +_9d=true; } }else{ -if(aNm==_96.ACT_DESKTOP_TILE&&_95.prefs.windowTiling){ +if(aNm==_9c.ACT_DESKTOP_TILE&&_9b.prefs.windowTiling){ if(!this.posStatic){ -_97=true; +_9d=true; } }else{ -if(aNm==_96.ACT_DESKTOP_UNTILE){ +if(aNm==_9c.ACT_DESKTOP_UNTILE){ if(this.posStatic){ -_97=true; +_9d=true; } } } @@ -691,43 +711,43 @@ } }else{ if(this.portlet){ -var _98=this.portlet.getAction(aNm); -if(_98!=null){ -if(_98.id==_96.ACT_REMOVEPORTLET){ -if(_95.page.editMode&&this.getLayoutActionsEnabled()){ -_97=true; +var _9f=this.portlet.getAction(aNm); +if(_9f!=null){ +if(_9f.id==_9c.ACT_REMOVEPORTLET){ +if(_9b.page.editMode&&this.getLayoutActionsEnabled()){ +_9d=true; } }else{ -if(_98.type==_96.PORTLET_ACTION_TYPE_MODE){ -if(aNm!=_94){ -_97=true; +if(_9f.type==_9c.PORTLET_ACTION_TYPE_MODE){ +if(aNm!=_9a){ +_9d=true; } }else{ -if(aNm!=_93){ -_97=true; +if(aNm!=_99){ +_9d=true; } } } }else{ -_97=true; +_9d=true; } }else{ -if(aNm==_96.ACT_MAXIMIZE){ -if(aNm!=this.windowState&&this.minimizeTempRestore==null){ -_97=true; +if(aNm==_9c.ACT_MAXIMIZE){ +if(aNm!=_9e&&this.minimizeTempRestore==null){ +_9d=true; } }else{ -if(aNm==_96.ACT_MINIMIZE){ -if(aNm!=this.windowState){ -_97=true; +if(aNm==_9c.ACT_MINIMIZE){ +if(aNm!=_9e){ +_9d=true; } }else{ -if(aNm==_96.ACT_RESTORE){ -if(this.windowState==_96.ACT_MAXIMIZE||this.windowState==_96.ACT_MINIMIZE){ -_97=true; +if(aNm==_9c.ACT_RESTORE){ +if(_9e==_9c.ACT_MAXIMIZE||_9e==_9c.ACT_MINIMIZE){ +_9d=true; } }else{ -_97=true; +_9d=true; } } } @@ -735,301 +755,375 @@ } } } -return _97; -},_windowActionMenuIsEmpty:function(){ -var _99=null; -var _9a=null; +return _9d; +},_actionMenuIsEmpty:function(_a1,_a2){ +var _a3=true; +var _a4=this.actionMenuWidget; +if(_a4){ +var _a5=null; +var _a6=null; if(this.portlet){ -_99=this.portlet.getCurrentActionState(); -_9a=this.portlet.getCurrentActionMode(); +_a5=this.portlet.getCurrentActionState(); +_a6=this.portlet.getCurrentActionMode(); } -var _9b=true; -for(var aNm in this.actionMenus){ -var _9d=this.actionMenus[aNm]; -if(aNm!=jetspeed.id.ACT_MENU&&this._isWindowActionEnabled(aNm,_99,_9a)){ -_9b=false; +for(var aNm in _a4.menuItemsByName){ +if(aNm!=_a2.ACT_MENU&&this._isActionEnabled(aNm,_a5,_a6,_a1,_a2)){ +_a3=false; break; } } -return _9b; -},windowActionButtonSync:function(){ -var _9e=this.decConfig.windowActionButtonHide; -var _9f=null; -var _a0=null; +} +return _a3; +},actionBtnSyncDefer:function(){ +dojo.lang.setTimeout(this,this.actionBtnSync,10); +},actionBtnSync:function(_a8,_a9){ +if(!_a8){ +_a8=jetspeed; +_a9=_a8.id; +} +var _aa=this.decConfig.windowActionButtonHide; +var _ab=null; +var _ac=null; if(this.portlet){ -_9f=this.portlet.getCurrentActionState(); -_a0=this.portlet.getCurrentActionMode(); +_ab=this.portlet.getCurrentActionState(); +_ac=this.portlet.getCurrentActionMode(); } for(var aNm in this.actionButtons){ -var _a2=false; -if(!_9e||this.titleLit){ -_a2=this._isWindowActionEnabled(aNm,_9f,_a0); -} -var _a3=this.actionButtons[aNm]; -if(_a2){ -_a3.style.display=""; -}else{ -_a3.style.display="none"; +var _ae=false; +if(!_aa||this.titleLit){ +_ae=this._isActionEnabled(aNm,_ab,_ac,_a8,_a9); } +var _af=this.actionButtons[aNm]; +_af.style.display=(_ae)?"":"none"; } },_postCreateMaximizeWindow:function(){ +var _b0=jetspeed; +var _b1=_b0.id; this.maximizeWindow(); -this.windowActionButtonSync(); +if(this.portlet){ +this.portlet.renderAction(_b1.ACT_MAXIMIZE); +}else{ +this.actionBtnSync(_b0,_b1); +} },minimizeWindowTemporarily:function(){ +var _b2=jetspeed; +var _b3=_b2.id; if(this.minimizeTempRestore==null){ this.minimizeTempRestore=this.windowState; -if(this.windowState!=jetspeed.id.ACT_MINIMIZE){ -this.minimizeWindow(); +if(this.windowState!=_b3.ACT_MINIMIZE){ +this.minimizeWindow(false); } -this.windowActionButtonSync(); +this.actionBtnSync(_b2,_b3); } },restoreFromMinimizeWindowTemporarily:function(){ -var _a4=this.minimizeTempRestore; +var _b4=jetspeed; +var _b5=_b4.id; +var _b6=this.minimizeTempRestore; this.minimizeTempRestore=null; -if(_a4){ -if(_a4!=jetspeed.id.ACT_MINIMIZE){ +if(_b6){ +if(_b6!=_b5.ACT_MINIMIZE){ this.restoreWindow(); } -this.windowActionButtonSync(); +this.actionBtnSync(_b4,_b5); } -},minimizeWindow:function(evt){ +},minimizeWindow:function(_b7){ if(!this.tbNode){ return; } -var _a6=jetspeed; +var _b8=jetspeed; if(this.windowState==jetspeed.id.ACT_MAXIMIZE){ -this.showAllPortletWindows(); -this.restoreWindow(evt); +_b8.widget.showAllPortletWindows(); +this.restoreWindow(); +}else{ +if(!_b7){ +this._updtDimsObj(false,false); } -this._updtDimsObj(false); -var _a7=_a6.css.cssDis; -this.cNodeCss[_a7]="none"; +} +var _b9=_b8.css.cssDis; +this.cNodeCss[_b9]="none"; if(this.rbNodeCss){ -this.rbNodeCss[_a7]="none"; +this.rbNodeCss[_b9]="none"; } +this.windowState=_b8.id.ACT_MINIMIZE; +if(this.ie6&&!this.posStatic&&this.heightToFit){ +if(!this.ie6){ this.containerNode.style.display="none"; -if(this.rbNode){ -this.rbNode.style.display="none"; -} -dojo.html.setContentBox(this.domNode,{height:dojo.html.getMarginBox(this.tbNode).height}); -this.windowState=_a6.id.ACT_MINIMIZE; -},showAllPortletWindows:function(){ -var _a8=jetspeed.page.getPWins(false); -for(var i=0;i<_a8.length;i++){ -var _aa=_a8[i]; -if(_aa){ -_aa.domNode.style.display=""; -} -} -},hideAllPortletWindows:function(_ab){ -var _ac=jetspeed.page.getPWins(false); -for(var i=0;i<_ac.length;i++){ -var _ae=_ac[i]; -if(_ae&&_ab&&_ab.length>0){ -for(var _af=0;_af<_ab.length;_af++){ -if(_ae.widgetId==_ab[_af]){ -_ae=null; -break; } } +if(this.ie6){ +dojo.lang.setTimeout(this,this._ie6DeferredMinimize,100); } -if(_ae){ -_ae.domNode.style.display="none"; -} +},_ie6DeferredMinimize:function(){ +this._alterCss(true,true); +if(!this.posStatic&&this.heightToFit){ +this.containerNode.style.display="none"; } -},maximizeWindow:function(evt){ -var _b1=jetspeed; -var _b2=_b1.id; -var _b3=this.domNode; -var _b4=[this.widgetId]; -this.hideAllPortletWindows(_b4); -if(this.windowState==_b2.ACT_MINIMIZE){ -this.restoreWindow(evt); +},maximizeWindow:function(){ +var _ba=jetspeed; +var _bb=_ba.id; +var _bc=this.domNode; +var _bd=[this.widgetId]; +_ba.widget.hideAllPortletWindows(_bd); +if(this.windowState==_bb.ACT_MINIMIZE){ +this.restoreWindow(); } -var _b5=this.posStatic; -this.preMaxPosStatic=_b5; +var _be=this.posStatic; +this.preMaxPosStatic=_be; this.preMaxHeightToFit=this.heightToFit; -var _b6=_b5; -this._updtDimsObj(_b6); -var _b7=document.getElementById(_b2.DESKTOP); -var _b8=dojo.html.getAbsolutePosition(_b7,true).y; -var _b9=dojo.html.getViewport(); -var _ba=dojo.html.getPadding(_b1.docBody); -this.dimsUntiledTemp={width:_b9.width-_ba.width-2,height:_b9.height-_ba.height-_b8,left:1,top:_b8}; -this._setTitleBarDragging(true,_b1.css,false); +var _bf=_be; +this._updtDimsObj(false,_bf); +var _c0=document.getElementById(_bb.DESKTOP); +var _c1=dojo.html.getAbsolutePosition(_c0,true).y; +var _c2=dojo.html.getViewport(); +var _c3=dojo.html.getPadding(_ba.docBody); +this.dimsUntiledTemp={w:_c2.width-_c3.width-2,h:_c2.height-_c3.height-_c1,l:1,t:_c1}; +this._setTitleBarDragging(true,_ba.css,false); this.posStatic=false; this.heightToFit=false; this._alterCss(true,true); -if(_b5){ -_b7.appendChild(_b3); +if(_be){ +_c0.appendChild(_bc); } -this.windowState=_b2.ACT_MAXIMIZE; -},restoreWindow:function(evt){ -var _bc=jetspeed; -var _bd=_bc.id; -var _be=_bc.css; -var _bf=this.domNode; -var _c0=false; -if(_bf.style.position=="absolute"){ -_c0=true; -} -var _c1=null; -if(this.windowState==_bd.ACT_MAXIMIZE){ -this.showAllPortletWindows(); +this.windowState=_bb.ACT_MAXIMIZE; +},restoreWindow:function(){ +var _c4=jetspeed; +var _c5=_c4.id; +var _c6=_c4.css; +var _c7=this.domNode; +var _c8=false; +if(_c7.style.position=="absolute"){ +_c8=true; +} +var _c9=null; +if(this.windowState==_c5.ACT_MAXIMIZE){ +_c4.widget.showAllPortletWindows(); this.posStatic=this.preMaxPosStatic; this.heightToFit=this.preMaxHeightToFit; this.dimsUntiledTemp=null; } -var _c2=_be.cssDis; -this.cNodeCss[_c2]="block"; +var _ca=_c6.cssDis; +this.cNodeCss[_ca]="block"; if(this.rbNodeCss){ -this.rbNodeCss[_c2]="block"; +this.rbNodeCss[_ca]="block"; } -var _c3=this.getDimsObj(this.posStatic); -this.windowState=_bd.ACT_RESTORE; -this._setTitleBarDragging(true,_bc.css); +this.windowState=_c5.ACT_RESTORE; +this._setTitleBarDragging(true,_c4.css); +var ie6=this.ie6; +if(!ie6){ this._alterCss(true,true); -if(this.posStatic&&_c0){ -if(_c3!=null&&_c3.columnInfo!=null&&_c3.columnInfo.columnIndex!=null){ -var _c4=_bc.page.columns[_c3.columnInfo.columnIndex]; -if(_c3.columnInfo.previousSibling){ -dojo.dom.insertAfter(_bf,_c3.columnInfo.previousSibling); }else{ -if(_c3.columnInfo.nextSibling){ -dojo.dom.insertBefore(_bf,_c3.columnInfo.nextSibling); -}else{ -_c4.domNode.appendChild(_bf); +var _cc=null; +if(this.heightToFit){ +_cc=this.iNodeCss; +this.iNodeCss=null; } +this._alterCss(true,true); +this._updtDimsObj(false,false,true,false,true); +if(_cc!=null){ +this.iNodeCss=_cc; } -}else{ -if(_bc.page.columns!=null&&_bc.page.columns.length>0){ -dojo.dom.prependChild(_bf,_bc.page.columns[0].domNode); +this._alterCss(false,false,true); } +if(this.posStatic&&_c8){ +this._tileWindow(_c4); } +},_tileWindow:function(_cd){ +if(!this.posStatic){ +return; } -},_updtDimsObj:function(_c5){ -var _c6=jetspeed; -var _c7=_c6.id; -var _c8=dojo; -var _c9=this.domNode; -var _ca=this.posStatic; -var _cb=this.getDimsObj(_ca); -if(_ca){ -if(_c5){ -var _cc={}; -var _cd=_c8.dom.getPreviousSiblingElement(_c9); -if(_cd){ -_cc.previousSibling=_cd; +var _ce=this.domNode; +var _cf=this.getDimsObj(this.posStatic); +var _d0=true; +if(_cf!=null){ +var _d1=_cf.colInfo; +if(_d1!=null&&_d1.colI!=null){ +var _d2=_cd.page.columns[_d1.colI]; +var _d3=((_d2!=null)?_d2.domNode:null); +if(_d3!=null){ +var _d4=null; +var _d5=_d3.childNodes.length; +if(_d5==0){ +_d3.appendChild(_ce); +_d0=false; +}else{ +var _d6,_d7,_d8=0; +if(_d1.pSibId!=null||_d1.nSibId!=null){ +_d6=_d3.firstChild; +do{ +_d7=_d6.id; +if(_d7==null){ +continue; +} +if(_d7==_d1.pSibId){ +dojo.dom.insertAfter(_ce,_d6); +_d0=false; +}else{ +if(_d7==_d1.nSibId){ +dojo.dom.insertBefore(_ce,_d6); +_d0=false; }else{ -_cd=_c8.dom.getNextSiblingElement(_c9); -if(_cd){ -_cc.nextSibling=_cd; +if(_d8==_d1.elmtI){ +_d4=_d6; +} } } -_cc.columnIndex=this.getPageColumnIndex(); -_cb.columnInfo=_cc; +_d6=_d6.nextSibling; +_d8++; +}while(_d0&&_d6!=null); } +} +if(_d0){ +if(_d4!=null){ +dojo.dom.insertBefore(_ce,_d4); }else{ +dojo.dom.prependChild(_ce,_d3); } +_d0=false; +} +} +} +} +if(_d0){ +var _d9=_cd.page.getColumnDefault(); +if(_d9!=null){ +dojo.dom.prependChild(_ce,_d9.domNode); +} +} +},getDimsObj:function(_da,_db){ +return (_da?((this.dimsTiledTemp!=null&&!_db)?this.dimsTiledTemp:this.dimsTiled):((this.dimsUntiledTemp!=null&&!_db)?this.dimsUntiledTemp:this.dimsUntiled)); +},_updtDimsObj:function(_dc,_dd,_de,_df,_e0,_e1){ +var _e2=jetspeed; +var _e3=dojo; +var _e4=this.domNode; +var _e5=this.posStatic; +var _e6=this.getDimsObj(_e5,_e1); +var _e7=(!_de&&!_e5&&(!_dc||_e6.l==null||_e6.t==null)); +var _e8=(!_df&&(!_dc||_e7||_e0||_e6.w==null||_e6.h==null)); +if(_e8||_e7){ +var _e9=this._getLayoutInfo().dNode; +if(_e8){ +var _ea=_e2.ui.getMarginBoxSize(_e4,_e9); +_e6.w=_ea.w; +_e6.h=_ea.h; +if(!_e5){ +_e7=true; +} +} +if(_e7){ +var _eb=_e3.html.getAbsolutePosition(_e4,true); +_e6.l=_eb.x-_e9.mE.l-_e9.pbE.l; +_e6.t=_eb.y-_e9.mE.t-_e9.pbE.t; +} +} +if(_e5){ +if(_dd||_e1&&_e6.colInfo==null){ +var _ec=0,_ed=_e4.previousSibling,_ee=_e4.nextSibling; +var _ef=(_ed!=null?_ed.id:null),_f0=(_ee!=null?_ee.id:null); +if(_ed!=null){ +_ef=_ed.id; +} +while(_ed!=null){ +_ec++; +_ed=_ed.previousSibling; +} +_e6.colInfo={elmtI:_ec,pSibId:_ef,nSibId:_f0,colI:this.getPageColumnIndex()}; +} +if(_e1){ +this.dimsTiledTemp={w:_e6.w,h:_e6.h,colInfo:_e6.colInfo}; +_e6=this.dimsTiledTemp; +} +}else{ +if(_e1){ +this.dimsUntiledTemp={w:_e6.w,h:_e6.h,l:_e6.l,t:_e6.t}; +_e6=this.dimsUntiledTemp; +} +} +return _e6; },getLayoutActionsEnabled:function(){ return (this.windowState!=jetspeed.id.ACT_MAXIMIZE&&(!this.portlet||!this.portlet.layoutActionsDisabled)); -},_setTitleBarDragging:function(_ce,_cf,_d0){ -var _d1=this.tbNode; -if(!_d1){ +},_setTitleBarDragging:function(_f1,_f2,_f3){ +var _f4=this.tbNode; +if(!_f4){ return; } -if(typeof _d0=="undefined"){ -_d0=this.getLayoutActionsEnabled(); +if(typeof _f3=="undefined"){ +_f3=this.getLayoutActionsEnabled(); } -var _d2=this.resizeHandle; -var _d3=null; -if(_d0){ -_d3=this.decConfig.dragCursor; -if(_d2){ -_d2.domNode.style.display=""; +var _f5=this.resizeHandle; +var _f6=null; +if(_f3){ +_f6=this.decConfig.dragCursor; +if(_f5){ +_f5.domNode.style.display=""; } if(this.drag){ this.drag.enable(); } }else{ -_d3="default"; -if(_d2){ -_d2.domNode.style.display="none"; +_f6="default"; +if(_f5){ +_f5.domNode.style.display="none"; } if(this.drag){ this.drag.disable(); } } -this.tbNodeCss[_cf.cssCur]=_d3; -if(!_ce){ -_d1.style.cursor=_d3; +this.tbNodeCss[_f2.cssCur]=_f6; +if(!_f1){ +_f4.style.cursor=_f6; } },onMouseDown:function(evt){ -this.bringToTop(); -},bringToTop:function(evt,_d6){ +this.bringToTop(evt,false,false,jetspeed); +},bringToTop:function(evt,_f9,_fa,_fb){ if(!this.posStatic){ -var _d7=jetspeed; -var _d8=_d7.page; -var _d9=_d7.css; -var _da=this.dNodeCss; -var _db=_d8.getPWinHighZIndex(); -var _dc=_da[_d9.cssZIndex]; -if(_db!=_dc){ -var _dd=this._setAsTopZIndex(_d8,_d9,_da,false); +var _fc=_fb.page; +var _fd=_fb.css; +var _fe=this.dNodeCss; +var _ff=_fc.getPWinHighZIndex(); +var zCur=_fe[_fd.cssZIndex]; +if(_ff!=zCur){ +var zTop=this._setAsTopZIndex(_fc,_fd,_fe,false); if(this.windowInitialized){ -this.domNode.style.zIndex=String(_dd); -if(this.portlet&&this.windowState!=jetspeed.id.ACT_MAXIMIZE){ +this.domNode.style.zIndex=zTop; +if(!_fa&&this.portlet&&this.windowState!=jetspeed.id.ACT_MAXIMIZE){ this.portlet.submitWinState(); } } } }else{ -if(_d6){ -var _dd=this._setAsTopZIndex(_d8,_d9,_da,true); +if(_f9){ +var zTop=this._setAsTopZIndex(_fc,_fd,_fe,true); if(this.windowInitialized){ -this.domNode.style.zIndex=String(_dd); +this.domNode.style.zIndex=zTop; } } } -},_setAsTopZIndex:function(_de,_df,_e0,_e1){ -var _e2=_de.getPWinTopZIndex(_e1); -_e0[_df.cssZIndex]=_e2; -return _e2; +},_setAsTopZIndex:function(_102,_103,_104,_105){ +var zTop=String(_102.getPWinTopZIndex(_105)); +_104[_103.cssZIndex]=zTop; +return zTop; },makeUntiled:function(){ -var _e3=jetspeed; -this._updtDimsObj(true); -this._makeUntiledDims(); -this._setAsTopZIndex(_e3.page,_e3.css,this.dNodeCss,false); +var _107=jetspeed; +this._updtDimsObj(false,true); +this.posStatic=false; +this._updtDimsObj(true,false); +this._setAsTopZIndex(_107.page,_107.css,this.dNodeCss,false); this._alterCss(true,true); -var _e4=document.getElementById(jetspeed.id.DESKTOP); -_e4.appendChild(this.domNode); -if(this.windowState==_e3.id.ACT_MINIMIZE){ +var _108=document.getElementById(jetspeed.id.DESKTOP); +_108.appendChild(this.domNode); +if(this.windowState==_107.id.ACT_MINIMIZE){ this.minimizeWindow(); } if(this.portlet){ this.portlet.submitWinState(); } this._addUntiledEvents(); -},_makeUntiledDims:function(){ -var _e5=this.domNode; -this.posStatic=false; -var _e6=this.getDimsObj(false); -if(_e6.width==null||_e6.height==null||_e6.left==null||_e6.top==null){ -var djH=dojo.html; -var _e8=djH.getAbsolutePosition(_e5,true); -var _e9=djH.getPixelValue(_e5,"margin-top",true); -var _ea=djH.getPixelValue(_e5,"margin-left",true); -var _eb=djH.getMarginBox(_e5); -_e6.width=_eb.width; -_e6.height=_eb.height; -_e6.left=_e8.x-_e9; -_e6.top=_e8.y-_ea; -} },makeTiled:function(){ this.posStatic=true; -var _ec=jetspeed; -var _ed=this._setAsTopZIndex(_ec.page,_ec.css,this.dNodeCss,true); -this.restoreWindow(); +var _109=jetspeed; +this._setAsTopZIndex(_109.page,_109.css,this.dNodeCss,true); +this._alterCss(true,true); +this._tileWindow(_109); if(this.portlet){ this.portlet.submitWinState(); } @@ -1043,309 +1137,369 @@ jetspeed.ui.evtDisconnectWObjAry(this._untiledEvts); delete this._untiledEvts; } -},makeHeightToFit:function(_ee,_ef){ -var _f0=dojo.html.getMarginBox(this.domNode); +},makeHeightToFit:function(_10a){ +var _10b=dojo.html.getMarginBox(this.domNode); this.heightToFit=true; +if(this.ie6){ +var _10c=this.iNodeCss; +this.iNodeCss=null; this._alterCss(false,true); -if(!_ee&&this.portlet){ +this._updtDimsObj(false,false,true,false,true); +this.iNodeCss=_10c; +} +this._alterCss(false,true); +if(!_10a&&this.portlet){ this.portlet.submitWinState(); } -},makeHeightVariable:function(_f1,_f2){ -var _f3=this.getDimsObj(this.posStatic); -var _f4=dojo.html.getMarginBox(this.domNode); -_f3.width=_f4.width; -_f3.height=_f4.height+3; +},makeHeightVariable:function(_10d,_10e){ +var _10f=this.getDimsObj(this.posStatic); +var _110=this._getLayoutInfo().dNode; +var _111=jetspeed.ui.getMarginBoxSize(this.domNode,_110); +_10f.w=_111.w; +_10f.h=_111.h; this.heightToFit=false; this._alterCss(false,true); -if(!_f2&&this.iframesInfo){ +if(!_10e&&this.iframesInfo){ dojo.lang.setTimeout(this,this._forceRefreshZIndex,70); } -if(!_f1&&this.portlet){ +if(!_10d&&this.portlet){ this.portlet.submitWinState(); } -},resizeTo:function(w,h,_f7){ -var _f8=this.getDimsObj(this.posStatic); -_f8.width=w; -_f8.height=h; +},resizeTo:function(w,h,_114){ +var _115=this.getDimsObj(this.posStatic); +_115.w=w; +_115.h=h; this._alterCss(false,false,true); if(!this.windowIsSizing){ -var _f9=this.resizeHandle; -if(_f9!=null&&_f9._isSizing){ -jetspeed.ui.evtConnect("after",_f9,"_endSizing",this,"endSizing"); +var _116=this.resizeHandle; +if(_116!=null&&_116._isSizing){ +jetspeed.ui.evtConnect("after",_116,"_endSizing",this,"endSizing"); this.windowIsSizing=true; } } -},getDimsObj:function(_fa){ -return (_fa?((this.dimsTiledTemp!=null)?this.dimsTiledTemp:this.dimsTiled):((this.dimsUntiledTemp!=null)?this.dimsUntiledTemp:this.dimsUntiled)); -},_alterCss:function(_fb,_fc,_fd,_fe,_ff){ -var _100=jetspeed; -var _101=_100.css; -var _102=this.iframesInfo; -var _103=(_102&&_102.layout); -var _104=(!_103?this.decConfig.layoutExtents:this.decConfig.layoutExtentsIFrame); -var _105=this.posStatic; -var _106=this.heightToFit; -var _107=(_fb||(_fd&&!_105)); -var _108=(_fc||_fd); -var _109=(_fb||_fe); -var _10a=(_fc||(_fd&&_103)); -var _10b=this.dNodeCss,_10c=null,_10d=null,_10e=null; -var _10f=this.getDimsObj(_105); -if(_fb){ -_10b[_101.cssPos]=(_105?"static":"absolute"); -} -var _110=null,_111=null; -if(_fc){ -if(_103){ -var _112=this.getIFrames(false); -if(_112&&_112.iframes.length==1&&_102.iframesSize!=null&&_102.iframesSize.length==1){ -var _113=_102.iframesSize[0].h; -if(_113!=null){ -_110=_112.iframes[0]; -_111=(_106?_113:(!_100.UAie?"100%":"99%")); -_ff=false; -} -} -} -} -if(_10a){ -_10c=this.cNodeCss; -var _114=_101.cssOx,_115=_101.cssOy; -if(_106&&!_103){ -_10b[_115]="visible"; -_10c[_115]="visible"; -}else{ -_10b[_115]="hidden"; -_10c[_115]=(!_103?"auto":"hidden"); -} -} -if(_109){ -var lIdx=_101.cssL,_117=_101.cssLU; -var tIdx=_101.cssT,_119=_101.cssTU; -if(_105){ -_10b[lIdx]="auto"; -_10b[_117]=""; -_10b[tIdx]="auto"; -_10b[_119]=""; -}else{ -_10b[lIdx]=_10f.left; -_10b[_117]="px"; -_10b[tIdx]=_10f.top; -_10b[_119]="px"; -} -} -if(_108){ -_10c=this.cNodeCss; -var hIdx=_101.cssH,_11b=_101.cssHU; -if(_106){ -_10b[hIdx]=""; -_10b[_11b]=""; -_10c[hIdx]=""; -_10c[_11b]=""; -}else{ -var h=_10f.height; -_10b[hIdx]=(h-_104.dNode.lessH); -_10b[_11b]="px"; -_10c[hIdx]=(h-_104.cNode.lessH-_104.lostHeight); -_10c[_11b]="px"; -} -} -if(_107){ -_10c=this.cNodeCss; -_10d=this.tbNodeCss; -_10e=this.rbNodeCss; -var wIdx=_101.cssW,_11e=_101.cssWU; -if(_105){ -_10b[wIdx]=""; -_10b[_11e]=""; -_10c[wIdx]=""; -_10c[_11e]=""; -if(_10d){ -_10d[wIdx]=""; -_10d[_11e]=""; -} -if(_10e){ -_10e[wIdx]=""; -_10e[_11e]=""; -} -}else{ -var w=_10f.width; -var _120=(w-_104.lostWidth); -_10b[wIdx]=(w-_104.dNode.lessW); -_10b[_11e]="px"; -_10c[wIdx]=(_120-_104.cNode.lessW); -_10c[_11e]="px"; -if(_10d){ -_10d[wIdx]=(_120-_104.tbNode.lessW); -_10d[_11e]="px"; -} -if(_10e){ -_10e[wIdx]=(_120-_104.rbNode.lessW); -_10e[_11e]="px"; -} -} -} -if(!_ff){ -this.domNode.style.cssText=_10b.join(""); -if(_10c){ -this.containerNode.style.cssText=_10c.join(""); -} -if(_10d){ -this.tbNode.style.cssText=_10d.join(""); -} -if(_10e){ -this.rbNode.style.cssText=_10e.join(""); -} -} -if(_110&&_111){ -this._deferSetIFrameH(_110,_111,false,50); -} -},_deferSetIFrameH:function(_121,_122,_123,_124,_125){ -if(!_124){ -_124=100; +this.resizeNotifyChildWidgets(); +},resizeNotifyChildWidgets:function(){ +if(this.childWidgets){ +var _117=this.childWidgets; +var _118=_117.length,_119; +for(var i=0;i<_118;i++){ +try{ +_119=_117[i]; +if(_119){ +_119.checkSize(); +} +} +catch(e){ +} +} +} +},_getLayoutInfo:function(){ +var _11b=this.iframesInfo; +return ((!(_11b&&_11b.layout))?this.decConfig.layout:this.decConfig.layoutIFrame); +},_getLayoutInfoMoveable:function(){ +return this._getLayoutInfo().dNode; +},onBrowserWindowResize:function(){ +if(this.ie6){ +this._resetIE6TiledSize(false); +} +},_resetIE6TiledSize:function(_11c){ +var _11d=this.posStatic; +if(_11d){ +var _11e=this.domNode; +var _11f=this.getDimsObj(_11d); +_11f.w=Math.max(0,this.domNode.parentNode.offsetWidth-this.colWidth_pbE); +this._alterCss(_11c,false,false,false,true); +} +},_alterCss:function(_120,_121,_122,_123,_124,_125){ +var _126=jetspeed; +var _127=_126.css; +var _128=this.iframesInfo; +var _129=(_128&&_128.layout); +var _12a=(!_129?this.decConfig.layout:this.decConfig.layoutIFrame); +var _12b=this.dNodeCss,_12c=null,_12d=null,_12e=null,_12f=false,_130=this.iNodeCss,_131=null; +if(_130&&_129){ +_131=_128.iframeCoverIE6Css; +} +var _132=this.posStatic; +var _133=(_132&&_130==null); +var _134=this.heightToFit; +var _135=(_120||_124||(_122&&!_133)); +var _136=(_121||_122); +var _137=(_120||_123); +var _138=(_121||(_122&&_129)); +var _139=this.getDimsObj(_132); +if(_120){ +_12b[_127.cssPos]=(_132?"relative":"absolute"); +} +var _13a=null,_13b=null; +if(_121){ +if(_129){ +var _13c=this.getIFrames(false); +if(_13c&&_13c.iframes.length==1&&_128.iframesSize!=null&&_128.iframesSize.length==1){ +var _13d=_128.iframesSize[0].h; +if(_13d!=null){ +_13a=_13c.iframes[0]; +_13b=(_134?_13d:(!_126.UAie?"100%":"99%")); +_125=false; +} +} +} +} +if(_138){ +_12c=this.cNodeCss; +var _13e=_127.cssOx,_13f=_127.cssOy; +if(_134&&!_129){ +_12b[_13f]="visible"; +_12c[_13f]="visible"; +}else{ +_12b[_13f]="hidden"; +_12c[_13f]=(!_129?"auto":"hidden"); +} +} +if(_137){ +var lIdx=_127.cssL,_141=_127.cssLU; +var tIdx=_127.cssT,_143=_127.cssTU; +if(_132){ +_12b[lIdx]="auto"; +_12b[_141]=""; +_12b[tIdx]="auto"; +_12b[_143]=""; +}else{ +_12b[lIdx]=_139.l; +_12b[_141]="px"; +_12b[tIdx]=_139.t; +_12b[_143]="px"; +} +} +if(_136){ +_12c=this.cNodeCss; +var hIdx=_127.cssH,_145=_127.cssHU; +if(_134&&_130==null){ +_12b[hIdx]=""; +_12b[_145]=""; +_12c[hIdx]=""; +_12c[_145]=""; +}else{ +var h=_139.h; +var _147=_126.css.cssDis; +var _148; +var _149; +if(_12c[_147]=="none"){ +_148=_12a.tbNode.mBh; +_149=""; +_12c[_145]=""; +}else{ +_148=(h-_12a.dNode.lessH); +_149=_148-_12a.cNode.lessH-_12a.cNode_mBh_LessBars; +_12c[_145]="px"; +} +_12b[hIdx]=_148; +_12b[_145]="px"; +_12c[hIdx]=_149; +if(_130){ +_130[hIdx]=_148; +_130[_145]="px"; +_12f=true; +if(_131){ +_131[hIdx]=_149; +_131[_145]=_12c[_145]; +} +} +} +} +if(_135){ +var w=_139.w; +_12c=this.cNodeCss; +_12d=this.tbNodeCss; +_12e=this.rbNodeCss; +var wIdx=_127.cssW,_14c=_127.cssWU; +if(_133&&(!this.ie6||!w)){ +_12b[wIdx]=""; +_12b[_14c]=""; +_12c[wIdx]=""; +_12c[_14c]=""; +if(_12d){ +_12d[wIdx]=""; +_12d[_14c]=""; +} +if(_12e){ +_12e[wIdx]=""; +_12e[_14c]=""; +} +}else{ +var _14d=(w-_12a.dNode.lessW); +_12b[wIdx]=_14d; +_12b[_14c]="px"; +_12c[wIdx]=_14d-_12a.cNode.lessW; +_12c[_14c]="px"; +if(_12d){ +_12d[wIdx]=_14d-_12a.tbNode.lessW; +_12d[_14c]="px"; +} +if(_12e){ +_12e[wIdx]=_14d-_12a.rbNode.lessW; +_12e[_14c]="px"; +} +if(_130){ +_130[wIdx]=_14d; +_130[_14c]="px"; +_12f=true; +if(_131){ +_131[wIdx]=_12c[wIdx]; +_131[_14c]=_12c[_14c]; +} +} +} +} +if(!_125){ +this.domNode.style.cssText=_12b.join(""); +if(_12c){ +this.containerNode.style.cssText=_12c.join(""); +} +if(_12d){ +this.tbNode.style.cssText=_12d.join(""); +} +if(_12e){ +this.rbNode.style.cssText=_12e.join(""); +} +if(_12f){ +this.bgIframe.iframe.style.cssText=_130.join(""); +if(_131){ +_128.iframeCover.style.cssText=_131.join(""); +} +} +} +if(_13a&&_13b){ +this._deferSetIFrameH(_13a,_13b,false,50); +} +},_deferSetIFrameH:function(_14e,_14f,_150,_151,_152){ +if(!_151){ +_151=100; } var pWin=this; window.setTimeout(function(){ -_121.height=_122; -if(_123){ -if(_125==null){ -_125=50; +_14e.height=_14f; +if(_150){ +if(_152==null){ +_152=50; } -if(_125==0){ +if(_152==0){ pWin._forceRefreshZIndexAndForget(); }else{ -dojo.lang.setTimeout(pWin,pWin._forceRefreshZIndexAndForget,_125); +dojo.lang.setTimeout(pWin,pWin._forceRefreshZIndexAndForget,_152); } } -},_124); +},_151); +},_getWindowMarginBox:function(_154,_155){ +var _156=this.domNode; +if(_154==null){ +_154=this._getLayoutInfo().dNode; +} +var _157=null; +if(_155.UAope){ +_157=(this.posStatic?_155.page.layoutInfo.column:_155.page.layoutInfo.desktop); +} +return _155.ui.getMarginBox(_156,_154,_157,_155); },_forceRefreshZIndex:function(){ -var _127=jetspeed; -var zTop=this._setAsTopZIndex(_127.page,_127.css,this.dNodeCss,this.posStatic); -this.domNode.style.zIndex=String(zTop); +var _158=jetspeed; +var zTop=this._setAsTopZIndex(_158.page,_158.css,this.dNodeCss,this.posStatic); +this.domNode.style.zIndex=zTop; },_forceRefreshZIndexAndForget:function(){ var zTop=jetspeed.page.getPWinTopZIndex(this.posStatic); this.domNode.style.zIndex=String(zTop); -},_forceRefreshFromCss:function(){ -this.domNode.style.cssText=this.dNodeCss.join(""); -},getIFrames:function(_12a){ -var _12b=this.containerNode.getElementsByTagName("iframe"); -if(_12b&&_12b.length>0){ -if(!_12a){ -return {iframes:_12b}; -} -var _12c=[]; -for(var i=0;i<_12b.length;i++){ -var ifrm=_12b[i]; +},getIFrames:function(_15b){ +var _15c=this.containerNode.getElementsByTagName("iframe"); +if(_15c&&_15c.length>0){ +if(!_15b){ +return {iframes:_15c}; +} +var _15d=[]; +for(var i=0;i<_15c.length;i++){ +var ifrm=_15c[i]; var w=new Number(String(ifrm.width)); w=(isNaN(w)?null:String(ifrm.width)); var h=new Number(String(ifrm.height)); h=(isNaN(h)?null:String(ifrm.height)); -_12c.push({w:w,h:h}); +_15d.push({w:w,h:h}); } -return {iframes:_12b,iframesSize:_12c}; +return {iframes:_15c,iframesSize:_15d}; } return null; },contentChanged:function(evt){ if(this.inContentChgd==false){ this.inContentChgd=true; if(this.heightToFit){ -this.makeHeightToFit(true,true); +this.makeHeightToFit(true); } this.inContentChgd=false; } },closeWindow:function(){ -var _132=jetspeed; -var jsUI=_132.ui; -var _134=_132.page; -var _135=dojo; -var _136=_135.event; -var _137=this.actionMenuWidget; -if(_137!=null){ -_137.destroy(); -this.actionMenuWidget=_137=null; +var _163=jetspeed; +var jsUI=_163.ui; +var _165=_163.page; +var _166=dojo; +var _167=_166.event; +var wDC=this.decConfig; +if(this.actionMenuWidget&&wDC&&wDC.windowActionMenuHasNoImg){ +jsUI.evtDisconnect("after",this.tbNode,"oncontextmenu",this,"actionMenuOpen",_167); } -_134.tooltipMgr.removeNodes(this.tooltips); +_165.tooltipMgr.removeNodes(this.tooltips); this.tooltips=ttps=null; if(this.iframesInfo){ -_134.unregPWinIFrameCover(this); +_165.unregPWinIFrameCover(this); } -var _138=this.actionButtons; -if(_138){ -var _139=(this.decConfig!=null&&this.decConfig.windowActionButtonTooltip); -for(var aNm in _138){ -var aBtn=_138[aNm]; +var _169=this.actionButtons; +if(_169){ +var _16a=(wDC&&wDC.windowActionButtonTooltip); +for(var aNm in _169){ +var aBtn=_169[aNm]; if(aBtn){ -jsUI.evtDisconnect("after",aBtn,"onclick",this,"windowActionButtonClick",_136); -if(!_139){ -jsUI.evtDisconnect("after",aBtn,"onmousedown",_136.browser,"stopEvent",_136); +jsUI.evtDisconnect("after",aBtn,"onclick",this,"actionBtnClick",_167); +if(!_16a){ +jsUI.evtDisconnect("after",aBtn,"onmousedown",_163,"_stopEvent",_167); } } } -this.actionButtons=_138=null; +this.actionButtons=_169=null; } if(this.drag){ -this.drag.destroy(_135,_136,_132,jsUI); +this.drag.destroy(_166,_167,_163,jsUI); this.drag=null; } if(this.resizeHandle){ -this.resizeHandle.destroy(_136,_132,jsUI); +this.resizeHandle.destroy(_167,_163,jsUI); this.resizeHandle=null; } -if(this.subWidgetEndIndex>this.subWidgetStartIndex){ -_135.debug("closeWindow subwidgets "+this.subWidgetStartIndex+" / "+this.subWidgetEndIndex); -var _13c=_135.widget.manager; -for(var i=this.subWidgetEndIndex-1;i>=this.subWidgetStartIndex;i--){ -try{ -if(_13c.widgets.length>i){ -var _13e=_13c.widgets[i]; -if(_13e!=null){ -var swT=_13e.widgetType; -var swI=_13e.widgetId; -_13e.destroy(); -_135.debug("destroyed sub-widget["+i+"]: "+swT+" "+swI); -} -} -} -catch(e){ -} -} -} +this._destroyChildWidgets(_166); this._removeUntiledEvents(); -var _141=this.domNode; -if(_141&&_141.parentNode){ -_141.parentNode.removeChild(_141); +var _16d=this.domNode; +if(_16d&&_16d.parentNode){ +_16d.parentNode.removeChild(_16d); } this.domNode=null; this.containerNode=null; this.tbNode=null; this.rbNode=null; -},dumpPos:function(){ -var _142=dojo; -var djH=_142.html; -var _144=this.domNode; -var _145=this.containerNode; -var _146=djH.getAbsolutePosition(_144,true); -var _147=djH.getMarginBox(_144); -var _148=djH.getMarginBox(_145); -var _149=djH.getContentBox(_145); -var _14a=this.decConfig.layoutExtents; -var ind=jetspeed.debugindent; -_142.hostenv.println("wnd-dims ["+this.widgetId+"] abs.x="+_146.x+" abs.y="+_146.y+" z="+_144.style.zIndex); -_142.hostenv.println(ind+"mb.width="+_147.width+" mb.height="+_147.height); -_142.hostenv.println(ind+"style.width="+_144.style.width+" style.height="+_144.style.height); -_142.hostenv.println(ind+"cnt.mb.width="+_148.width+" cnt.mb.height="+_148.height); -_142.hostenv.println(ind+"cnt.cb.width="+_149.width+" cnt.cb.height="+_149.height); -_142.hostenv.println(ind+"cnt.style.width="+_145.style.width+" cnt.style.height="+_145.style.height); -_142.hostenv.println(ind+"dNodeCss="+this.dNodeCss.join("")); -_142.hostenv.println(ind+"cNodeCss="+this.cNodeCss.join("")); -_142.hostenv.println(ind+"layoutExtents: "+"dNode.lessW="+_14a.dNode.lessW+" dNode.lessH="+_14a.dNode.lessH+" lostW="+_14a.lostWidth+" lostH="+_14a.lostHeight+" cNode.lessW="+_14a.cNode.lessW+" cNode.lessH="+_14a.cNode.lessH); -_142.hostenv.println(ind+"dimsTiled="+jetspeed.printobj(this.dimsTiled)); -_142.hostenv.println(ind+"dimsUntiled="+jetspeed.printobj(this.dimsUntiled)); -if(this.dimsTiledTemp!=null){ -_142.hostenv.println(ind+"dimsTiledTemp="+jetspeed.printobj(this.dimsTiledTemp)); +},_destroyChildWidgets:function(_16e){ +if(this.childWidgets){ +var _16f=this.childWidgets; +var _170=_16f.length,_171,swT,swI; +_16e.debug("PortletWindow ["+this.widgetId+"] destroy child widgets ("+_170+")"); +for(var i=(_170-1);i>=0;i--){ +try{ +_171=_16f[i]; +if(_171){ +swT=_171.widgetType; +swI=_171.widgetId; +_171.destroy(); +_16e.debug("destroyed child widget["+i+"]: "+swT+" "+swI); } -if(this.dimsUntiledTemp!=null){ -_142.hostenv.println(ind+"dimsUntiledTemp="+jetspeed.printobj(this.dimsUntiledTemp)); +_16f[i]=null; +} +catch(e){ +} +} +this.childWidgets=null; } },getPageColumnIndex:function(){ return jetspeed.page.getColIndexForNode(this.domNode); @@ -1355,182 +1509,245 @@ if(this.portlet&&this.windowState!=jetspeed.id.ACT_MAXIMIZE){ this.portlet.submitWinState(); } -},endDragging:function(_14d){ -var _14e=this.posStatic; -if(!_14e){ -if(_14d&&_14d.left!=null&&_14d.top!=null){ -var _14f=this.getDimsObj(_14e); -_14f.left=_14d.left; -_14f.top=_14d.top; -this._alterCss(false,false,false,true,true); +},endDragging:function(_176,_177,_178){ +var _179=jetspeed; +var ie6=this.ie6; +if(_177){ +this.posStatic=false; +}else{ +if(_178){ +this.posStatic=true; +} +} +var _17b=this.posStatic; +if(!_17b){ +var _17c=this.getDimsObj(_17b); +if(_176&&_176.left!=null&&_176.top!=null){ +_17c.l=_176.left; +_17c.t=_176.top; +if(!_177){ +this._alterCss(false,false,false,true,false,true); +} +} +if(_177){ +this._updtDimsObj(false,false,true); +this._alterCss(true,true,false,true); +this._addUntiledEvents(); } }else{ +if(_178){ +this._setAsTopZIndex(_179.page,_179.css,this.dNodeCss,_17b); +this._updtDimsObj(false,false); +} +if(!ie6){ this._alterCss(true); +this.resizeNotifyChildWidgets(); +}else{ +this._resetIE6TiledSize(_178); } -if(this.portlet&&this.windowState!=jetspeed.id.ACT_MAXIMIZE){ +} +if(this.portlet&&this.windowState!=_179.id.ACT_MAXIMIZE){ this.portlet.submitWinState(); } -if(this.ie6){ -dojo.lang.setTimeout(this,this._IEPostDrag,jetspeed.widget.ie6PostDragAddDelay); +if(ie6){ +dojo.lang.setTimeout(this,this._IEPostDrag,_179.widget.ie6PostDragAddDelay); } -},getCurWinState:function(_150){ -var _151=this.domNode; -var _152=this.posStatic; -if(!_151){ +},getCurWinState:function(_17d){ +var _17e=this.domNode; +var _17f=this.posStatic; +if(!_17e){ return null; } -var _153=_151.style; -var _154={}; -if(!_152){ -_154.zIndex=_153.zIndex; +var _180=_17e.style; +var _181={}; +if(!_17f){ +_181.zIndex=_180.zIndex; +} +if(_17d){ +return _181; +} +var _182=this.getDimsObj(_17f); +_181.width=(_182.w?String(_182.w):""); +_181.height=(_182.h?String(_182.h):""); +_181[jetspeed.id.PP_WINDOW_POSITION_STATIC]=_17f; +_181[jetspeed.id.PP_WINDOW_HEIGHT_TO_FIT]=this.heightToFit; +if(!_17f){ +_181.left=(_182.l!=null?String(_182.l):""); +_181.top=(_182.t!=null?String(_182.t):""); +}else{ +var _183=jetspeed.page.getPortletCurColRow(_17e); +if(_183!=null){ +_181.column=_183.column; +_181.row=_183.row; +_181.layout=_183.layout; +}else{ +throw new Error("Can't find row/col/layout for window: "+this.widgetId); +} +} +return _181; +},getCurWinStateForPersist:function(_184){ +var _185=this.getCurWinState(_184); +this._mkNumProp(null,_185,"left"); +this._mkNumProp(null,_185,"top"); +this._mkNumProp(null,_185,"width"); +this._mkNumProp(null,_185,"height"); +return _185; +},_mkNumProp:function(_186,_187,_188){ +var _189=(_187!=null&&_188!=null); +if(_186==null&&_189){ +_186=_187[_188]; +} +if(_186==null||_186.length==0){ +_186=0; +}else{ +var _18a=""; +for(var i=0;i<_186.length;i++){ +var _18c=_186.charAt(i); +if((_18c>="0"&&_18c<="9")||_18c=="."){ +_18a+=_18c.toString(); +} +} +if(_18a==null||_18a.length==0){ +_18a="0"; } -if(_150){ -return _154; +if(_189){ +_187[_188]=_18a; } -_154.width=_153.width; -_154.height=_153.height; -_154[jetspeed.id.PP_WINDOW_POSITION_STATIC]=_152; -_154[jetspeed.id.PP_WINDOW_HEIGHT_TO_FIT]=this.heightToFit; -if(!_152){ -_154.left=_153.left; -_154.top=_153.top; -}else{ -var _155=jetspeed.page.getPortletCurColRow(_151); -if(_155!=null){ -_154.column=_155.column; -_154.row=_155.row; -_154.layout=_155.layout; -}else{ -dojo.raise("Cannot not find row/col/layout for window: "+this.widgetId); -} -} -return _154; -},getCurWinStateForPersist:function(_156){ -var _157=this.getCurWinState(_156); -this._mkNumProp(null,_157,"left"); -this._mkNumProp(null,_157,"top"); -this._mkNumProp(null,_157,"width"); -this._mkNumProp(null,_157,"height"); -return _157; -},_mkNumProp:function(_158,_159,_15a){ -var _15b=(_159!=null&&_15a!=null); -if(_158==null&&_15b){ -_158=_159[_15a]; -} -if(_158==null||_158.length==0){ -_158=0; -}else{ -var _15c=""; -for(var i=0;i<_158.length;i++){ -var _15e=_158.charAt(i); -if((_15e>="0"&&_15e<="9")||_15e=="."){ -_15c+=_15e.toString(); -} -} -if(_15c==null||_15c.length==0){ -_15c="0"; +_186=new Number(_18a); } -if(_15b){ -_159[_15a]=_15c; +return _186; +},setPortletContent:function(html,url){ +var _18f=jetspeed; +var _190=dojo; +var ie6=this.ie6; +var _192=null; +if(ie6){ +_192=this.iNodeCss; +if(this.heightToFit){ +this.iNodeCss=null; +this._alterCss(false,true); } -_158=new Number(_15c); } -return _158; -},setPortletContent:function(html,url){ -var _161=jetspeed; -var _162=dojo; -var _163=html.toString(); +var _193=html.toString(); if(!this.exclPContent){ -_163="
"+_163+"
"; +_193="
"+_193+"
"; } -var _164=this._splitAndFixPaths_scriptsonly(_163,url); -this.subWidgetStartIndex=_162.widget.manager.widgets.length; -this.setContent(_164,_162); -if(_164.scripts!=null&&_164.scripts.length!=null&&_164.scripts.length>0){ -this._executeScripts(_164.scripts,_162); +var _194=this._splitAndFixPaths_scriptsonly(_193,url); +var _195=this.setContent(_194,_190); +this.childWidgets=((_195&&_195.length>0)?_195:null); +if(_194.scripts!=null&&_194.scripts.length!=null&&_194.scripts.length>0){ +this._executeScripts(_194.scripts,_190); this.onLoad(); } -if(_161.debug.setPortletContent){ -_162.debug("setPortletContent ["+(this.portlet?this.portlet.entityId:this.widgetId)+"]"); +if(_18f.debug.setPortletContent){ +_190.debug("setPortletContent ["+(this.portlet?this.portlet.entityId:this.widgetId)+"]"); } -var _165=this.containerNode; +var _196=this.containerNode; if(this.portlet){ -this.portlet.postParseAnnotateHtml(_165); +this.portlet.postParseAnnotateHtml(_196); +} +var _197=this.iframesInfo; +var _198=this.getIFrames(true); +var _199=null,_19a=false; +if(_198!=null){ +if(_197==null){ +this.iframesInfo=_197={}; +var _19b=_196.ownerDocument.createElement("div"); +var _19c="portletWindowIFrameCover"; +_19b.className=_19c; +_196.appendChild(_19b); +if(_18f.UAie){ +_19b.className=(_19c+"IE")+" "+_19c; +if(ie6){ +_197.iframeCoverIE6Css=_18f.css.cssWidthHeight.concat(); } -var _166=this.iframesInfo; -var _167=this.getIFrames(true); -var _168=null,_169=false; -if(_167!=null){ -if(_166==null){ -this.iframesInfo=_166={}; -var _16a=_165.ownerDocument.createElement("div"); -var _16b="portletWindowIFrameCover"; -_16a.className=_16b; -_165.appendChild(_16a); -if(_161.UAie){ -_16a.className=(_16b+"IE")+" "+_16b; -_162.html.setOpacity(_16a,0.1); -} -_166.iframeCover=_16a; -_161.page.regPWinIFrameCover(this); -} -var _16c=_166.iframesSize=_167.iframesSize; -var _16d=_167.iframes; -var _16e=_166.layout; -var _16f=_166.layout=(_16d.length==1&&_16c[0].h!=null); -if(_16e!=_16f){ -_169=true; } -if(_16f){ +_197.iframeCover=_19b; +_18f.page.regPWinIFrameCover(this); +} +var _19d=_197.iframesSize=_198.iframesSize; +var _19e=_198.iframes; +var _19f=_197.layout; +var _1a0=_197.layout=(_19e.length==1&&_19d[0].h!=null); +if(_19f!=_1a0){ +_19a=true; +} +if(_1a0){ if(!this.heightToFit){ -_168=_16d[0]; +_199=_19e[0]; } var wDC=this.decConfig; -var _165=this.containerNode; -_165.firstChild.className="PContent portletIFramePContent"; -_165.className=wDC.cNodeClass+" portletWindowIFrameClient"; -if(!wDC.layoutExtentsIFrame){ -this._createLayoutExtents(wDC,true,this.domNode,_165,this.tbNode,this.rbNode,_162,_161); +var _196=this.containerNode; +_196.firstChild.className="PContent portletIFramePContent"; +_196.className=wDC.cNodeClass+" portletWindowIFrameClient"; +if(!wDC.layoutIFrame){ +this._createLayoutInfo(wDC,true,this.domNode,_196,this.tbNode,this.rbNode,_190,_18f,_18f.ui); } } }else{ -if(_166!=null){ -if(_166.layout){ +if(_197!=null){ +if(_197.layout){ this.containerNode.className=this.decConfig.cNodeClass; -_169=true; +_19a=true; } this.iframesInfo=null; -_161.page.unregPWinIFrameCover(this); +_18f.page.unregPWinIFrameCover(this); } } -if(_169){ +if(_19a){ this._alterCss(false,false,true); } if(this.restoreOnNextRender){ this.restoreOnNextRender=false; this.restoreWindow(); } -if(_168){ -this._deferSetIFrameH(_168,(!_161.UAie?"100%":"99%"),true); +if(ie6){ +this._updtDimsObj(false,false,true,false,true); +if(_192==null){ +var _1a2=_18f.css; +_192=_1a2.cssHeight.concat(); +_192[_1a2.cssDis]="inline"; } -this.subWidgetEndIndex=_162.widget.manager.widgets.length; -},setContent:function(data,_172){ +this.iNodeCss=_192; +this._alterCss(false,false,true); +} +if(this.minimizeOnNextRender){ +this.minimizeOnNextRender=false; +this.minimizeWindow(true); +this.actionBtnSync(_18f,_18f.id); +this.needsRenderOnRestore=true; +} +if(_199){ +this._deferSetIFrameH(_199,(!_18f.UAie?"100%":"99%"),true); +} +},setContent:function(data,_1a4){ +var _1a5=null; +var step=1; +try{ if(this._callOnUnload){ this.onUnload(); } this._callOnUnload=true; -this._setContent(data.xml,_172); +step=2; +this._setContent(data.xml,_1a4); +step=3; if(this.parseContent){ var node=this.containerNode; -var _174=new _172.xml.Parse(); -var frag=_174.parseElement(node,null,true); -_172.widget.getParser().createSubComponents(frag,this); +var _1a8=new _1a4.xml.Parse(); +var frag=_1a8.parseElement(node,null,true); +_1a5=_1a4.widget.getParser().createSubComponents(frag,null); +} } -},_setContent:function(cont,_177){ +catch(e){ +dojo.hostenv.println("ERROR in PortletWindow ["+this.widgetId+"] setContent while "+(step==1?"running onUnload":(step==2?"setting innerHTML":"creating dojo widgets"))+" - "+jetspeed.formatError(e)); +} +return _1a5; +},_setContent:function(cont,_1ab){ +this._destroyChildWidgets(_1ab); try{ var node=this.containerNode; while(node.firstChild){ -_177.html.destroyNode(node.firstChild); +_1ab.html.destroyNode(node.firstChild); } node.innerHTML=cont; } @@ -1544,48 +1761,48 @@ },onUnload:function(e){ this._runStack("_onUnloadStack"); delete this.scriptScope; -},_runStack:function(_17b){ -var st=this[_17b]; +},_runStack:function(_1af){ +var st=this[_1af]; var err=""; -var _17e=this.scriptScope||window; +var _1b2=this.scriptScope||window; for(var i=0;i]*)>([\s\S]*?)<\/script>/i; -var _19f=/src=(['"]?)([^"']*)\1/i; -while(match=_19e.exec(s)){ -if(_19c&&match[1]){ -if(attr=_19f.exec(match[1])){ -_19d.push({path:attr[2]}); +var _1d0=true; +var _1d1=[]; +var _1d2=/]*)>([\s\S]*?)<\/script>/i; +var _1d3=/src=(['"]?)([^"']*)\1/i; +while(match=_1d2.exec(s)){ +if(_1d0&&match[1]){ +if(attr=_1d3.exec(match[1])){ +_1d1.push({path:attr[2]}); } } if(match[2]){ @@ -1688,56 +1905,106 @@ if(!sc){ continue; } -if(_19c){ -_19d.push(sc); +if(_1d0){ +_1d1.push(sc); } } s=s.substr(0,match.index)+s.substr(match.index+match[0].length); } -return {"xml":s,"styles":[],"titles":[],"requires":[],"scripts":_19d,"url":url}; +return {"xml":s,"styles":[],"titles":[],"requires":[],"scripts":_1d1,"url":url}; },_IEPostDrag:function(){ if(!this.posStatic){ return; } -var _1a1=this.domNode.parentNode; -dojo.dom.insertAtIndex(jetspeed.widget.ie6ZappedContentHelper,_1a1,0); +var _1d5=this.domNode.parentNode; +dojo.dom.insertAtIndex(jetspeed.widget.ie6ZappedContentHelper,_1d5,0); dojo.lang.setTimeout(this,this._IERemoveHelper,jetspeed.widget.ie6PostDragRmDelay); },_IERemoveHelper:function(){ dojo.dom.removeNode(jetspeed.widget.ie6ZappedContentHelper); }}); -jetspeed.widget.WinScroller=function(_1a2){ -if(!_1a2){ -_1a2=jetspeed; +jetspeed.widget.showAllPortletWindows=function(){ +var _1d6=jetspeed; +var _1d7=_1d6.css; +var _1d8=_1d7.cssDis,_1d9=_1d7.cssNoSelNm,_1da=_1d7.cssNoSel,_1db=_1d7.cssNoSelEnd; +var _1dc=_1d6.page.getPWins(false); +var _1dd,_1de; +for(var i=0;i<_1dc.length;i++){ +_1dd=_1dc[i]; +if(_1dd){ +_1de=_1dd.dNodeCss; +_1de[_1d9]=""; +_1de[_1da]=""; +_1de[_1db]=""; +_1de[_1d8]="block"; +_1dd.domNode.style.display="block"; +_1dd.domNode.style.visibility="visible"; } -this.UAmoz=_1a2.UAmoz; -this.UAope=_1a2.UAope; +} +}; +jetspeed.widget.hideAllPortletWindows=function(_1e0){ +var _1e1=jetspeed; +var _1e2=_1e1.css; +var _1e3=_1e2.cssDis,_1e4=_1e2.cssNoSelNm,_1e5=_1e2.cssNoSel,_1e6=_1e2.cssNoSelEnd; +var _1e7=_1e1.page.getPWins(false); +var _1e8,_1e9,_1ea; +for(var i=0;i<_1e7.length;i++){ +_1e9=_1e7[i]; +_1e8=true; +if(_1e9&&_1e0&&_1e0.length>0){ +for(var _1ec=0;_1ec<_1e0.length;_1ec++){ +if(_1e9.widgetId==_1e0[_1ec]){ +_1e8=false; +break; +} +} +} +if(_1e9){ +_1ea=_1e9.dNodeCss; +_1ea[_1e4]=""; +_1ea[_1e5]=""; +_1ea[_1e6]=""; +if(_1e8){ +_1ea[_1e3]="none"; +_1e9.domNode.style.display="none"; +}else{ +_1ea[_1e3]="block"; +_1e9.domNode.style.display="block"; +} +_1e9.domNode.style.visibility="visible"; +} +} +}; +jetspeed.widget.WinScroller=function(){ +var _1ed=this.jsObj; +this.UAmoz=_1ed.UAmoz; +this.UAope=_1ed.UAope; }; -dojo.extend(jetspeed.widget.WinScroller,{typeNm:"WinScroller",V_AS_T:32,V_AS_V:16,autoScroll:function(e){ +dojo.extend(jetspeed.widget.WinScroller,{jsObj:jetspeed,djObj:dojo,typeNm:"WinScroller",V_AS_T:32,V_AS_V:16,autoScroll:function(e){ try{ var w=window; var dy=0; if(e.clientY_1a6-this.V_AS_T){ +if(_1f1!=null&&e.clientY>_1f1-this.V_AS_T){ dy=this.V_AS_V; } } @@ -1745,49 +2012,49 @@ } catch(ex){ } -},_getErrMsg:function(ex,msg,_1ac,_1ad){ -return ((_1ad!=null?(_1ad+"; "):"")+this.typeNm+" "+(_1ac==null?"":_1ac.widgetId)+" "+msg+" ("+ex.toString()+")"); +},_getErrMsg:function(ex,msg,_1f7,_1f8){ +return ((_1f8!=null?(_1f8+"; "):"")+this.typeNm+" "+(_1f7==null?"":_1f7.widgetId)+" "+msg+" ("+ex.toString()+")"); }}); -jetspeed.widget.CreatePortletWindowResizeHandler=function(_1ae,_1af){ -var _1b0=new jetspeed.widget.PortletWindowResizeHandle(_1ae,_1af); +jetspeed.widget.CreatePortletWindowResizeHandler=function(_1f9,_1fa){ +var _1fb=new jetspeed.widget.PortletWindowResizeHandle(_1f9,_1fa); var doc=document; -var _1b2=doc.createElement("div"); -_1b2.className=_1b0.rhClass; -var _1b3=doc.createElement("div"); -_1b2.appendChild(_1b3); -_1ae.rbNode.appendChild(_1b2); -_1b0.domNode=_1b2; -_1b0.build(); -return _1b0; -}; -jetspeed.widget.PortletWindowResizeHandle=function(_1b4,_1b5){ -this.pWin=_1b4; -_1b5.widget.WinScroller.call(this,_1b5); +var _1fd=doc.createElement("div"); +_1fd.className=_1fb.rhClass; +var _1fe=doc.createElement("div"); +_1fd.appendChild(_1fe); +_1f9.rbNode.appendChild(_1fd); +_1fb.domNode=_1fd; +_1fb.build(); +return _1fb; +}; +jetspeed.widget.PortletWindowResizeHandle=function(_1ff,_200){ +this.pWin=_1ff; +_200.widget.WinScroller.call(this); }; dojo.inherits(jetspeed.widget.PortletWindowResizeHandle,jetspeed.widget.WinScroller); dojo.extend(jetspeed.widget.PortletWindowResizeHandle,{typeNm:"Resize",rhClass:"portletWindowResizeHandle",build:function(){ this.events=[jetspeed.ui.evtConnect("after",this.domNode,"onmousedown",this,"_beginSizing")]; -},destroy:function(_1b6,_1b7,jsUI){ -this._cleanUpLastEvt(_1b6,_1b7,jsUI); -jsUI.evtDisconnectWObjAry(this.events,_1b6); +},destroy:function(_201,_202,jsUI){ +this._cleanUpLastEvt(_201,_202,jsUI); +jsUI.evtDisconnectWObjAry(this.events,_201); this.events=this.pWin=null; -},_cleanUpLastEvt:function(_1b9,_1ba,jsUI){ -var _1bc=null; +},_cleanUpLastEvt:function(_204,_205,jsUI){ +var _207=null; try{ -jsUI.evtDisconnectWObjAry(this.tempEvents,_1b9); +jsUI.evtDisconnectWObjAry(this.tempEvents,_204); this.tempEvents=null; } catch(ex){ -_1bc=this._getErrMsg(ex,"event clean-up error",this.pWin,_1bc); +_207=this._getErrMsg(ex,"event clean-up error",this.pWin,_207); } try{ -_1ba.page.displayAllPWinIFrameCovers(true); +_205.page.displayAllPWinIFrameCovers(true); } catch(ex){ -_1bc=this._getErrMsg(ex,"clean-up error",this.pWin,_1bc); +_207=this._getErrMsg(ex,"clean-up error",this.pWin,_207); } -if(_1bc!=null){ -dojo.raise(_1bc); +if(_207!=null){ +dojo.raise(_207); } },_beginSizing:function(e){ if(this._isSizing){ @@ -1799,26 +2066,26 @@ return false; } this.targetDomNode=node; -var _1c0=jetspeed; -var jsUI=_1c0.ui; -var _1c2=dojo; -var _1c3=_1c2.event; -var _1c4=_1c0.docBody; +var _20b=jetspeed; +var jsUI=_20b.ui; +var _20d=dojo; +var _20e=_20d.event; +var _20f=_20b.docBody; if(this.tempEvents!=null){ -this._cleanUpLastEvt(_1c3,_1c0,jsUI); +this._cleanUpLastEvt(_20e,_20b,jsUI); } this._isSizing=true; this.startPoint={x:e.pageX,y:e.pageY}; -var mb=_1c2.html.getMarginBox(node); +var mb=_20d.html.getMarginBox(node); this.startSize={w:mb.width,h:mb.height}; var d=node.ownerDocument; -var _1c7=[]; -_1c7.push(jsUI.evtConnect("after",_1c4,"onmousemove",this,"_changeSizing",_1c3,25)); -_1c7.push(jsUI.evtConnect("after",_1c4,"onmouseup",this,"_endSizing",_1c3)); -_1c7.push(jsUI.evtConnect("after",d,"ondragstart",_1c3.browser,"stopEvent",_1c3)); -_1c7.push(jsUI.evtConnect("after",d,"onselectstart",_1c3.browser,"stopEvent",_1c3)); -_1c0.page.displayAllPWinIFrameCovers(false); -this.tempEvents=_1c7; +var _212=[]; +_212.push(jsUI.evtConnect("after",_20f,"onmousemove",this,"_changeSizing",_20e,25)); +_212.push(jsUI.evtConnect("after",_20f,"onmouseup",this,"_endSizing",_20e)); +_212.push(jsUI.evtConnect("after",d,"ondragstart",_20b,"_stopEvent",_20e)); +_212.push(jsUI.evtConnect("after",d,"onselectstart",_20b,"_stopEvent",_20e)); +_20b.page.displayAllPWinIFrameCovers(false); +this.tempEvents=_212; e.preventDefault(); },_changeSizing:function(e){ var pWin=this.pWin; @@ -1838,8 +2105,8 @@ var dy=this.startPoint.y-e.pageY; var newW=this.startSize.w-dx; var newH=this.startSize.h-dy; -var _1ce=pWin.posStatic; -if(_1ce){ +var _219=pWin.posStatic; +if(_219){ newW=this.startSize.w; } if(this.minSize){ @@ -1854,456 +2121,741 @@ pWin.resizeTo(newW,newH); e.preventDefault(); },_endSizing:function(e){ -var _1d1=jetspeed; -this._cleanUpLastEvt(dojo.event,_1d1,_1d1.ui); +var _21c=jetspeed; +this._cleanUpLastEvt(dojo.event,_21c,_21c.ui); this._isSizing=false; }}); jetspeed.widget.ie6PostDragAddDelay=60; jetspeed.widget.ie6PostDragRmDelay=120; +jetspeed.widget.BackgroundIframe=function(node,_21e,_21f){ +if(!_21e){ +_21e=this.defaultStyleClass; +} +var html="