META-INF.resources.oam.custom.popup.JSPopup.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tomahawk21 Show documentation
Show all versions of tomahawk21 Show documentation
JSF components and utilities that can be used with any JSF implementation.
This library is based on the JSF1.1 version of Tomahawk, but with minor source code and build
changes to take advantage of JSF2.1 features. A JSF2.1 implementation is required to use this
version of the Tomahawk library.
The newest version!
var orgApacheMyfacesPopupCurrentlyOpenedPopup;var orgApacheMyfacesPopupFrameUnder;function orgApacheMyfacesPopupfixIE(){if(document.all){if(orgApacheMyfacesPopupCurrentlyOpenedPopup==null){return false;}var B=document.getElementById(orgApacheMyfacesPopupCurrentlyOpenedPopup.id+"_IFRAME");if(B==null){orgApacheMyfacesPopupFrameUnder=document.createElement("");document.body.insertBefore(orgApacheMyfacesPopupFrameUnder);}else{orgApacheMyfacesPopupFrameUnder=B;}var A=orgApacheMyfacesPopupCurrentlyOpenedPopup;B=orgApacheMyfacesPopupFrameUnder;if(A!=null&&(A.style.display=="block")){A.style.zIndex=99;B.style.zIndex=A.style.zIndex-1;B.style.width=A.offsetWidth;B.style.height=A.offsetHeight;B.style.top=A.style.top;B.style.left=A.style.left;B.style.marginTop=A.style.marginTop;B.style.marginLeft=A.style.marginLeft;B.style.marginRight=A.style.marginRight;B.style.marginBottem=A.style.marginBottom;B.style.display="block";B.style.visibility="visible";}else{B.style.display="none";}}return false;}function orgApacheMyfacesPopup(A,C,B){this.popupId=A;this.displayAtDistanceX=C;this.displayAtDistanceY=B;this.display=orgApacheMyfacesPopupDisplay;this.hide=orgApacheMyfacesPopupHide;this.redisplay=orgApacheMyfacesPopupRedisplay;}function orgApacheMyfacesPopupDisplay(C){if(orgApacheMyfacesPopupCurrentlyOpenedPopup!=null){orgApacheMyfacesPopupCurrentlyOpenedPopup.style.display="none";}var B;var A;var E;if(document.all){if(orgApacheMyfacesPopupFrameUnder!=null){orgApacheMyfacesPopupFrameUnder.style.display="none";}B=window.event.srcElement;A=window.event.clientX;A+=orgApacheMyfacesPopupGetScrollingX();E=window.event.clientY;E+=orgApacheMyfacesPopupGetScrollingY();}else{B=C.target;A=C.pageX;E=C.pageY;}A+=this.displayAtDistanceX;E+=this.displayAtDistanceY;var D=document.getElementById(this.popupId);if(D.style.display!="block"){D.style.display="block";D.style.left=""+A+"px";D.style.top=""+E+"px";orgApacheMyfacesPopupCurrentlyOpenedPopup=D;}orgApacheMyfacesPopupfixIE();}function orgApacheMyfacesPopupHide(){var A=document.getElementById(this.popupId);A.style.display="none";if(document.all&&(orgApacheMyfacesPopupFrameUnder!=null)){orgApacheMyfacesPopupFrameUnder.style.display="none";}orgApacheMyfacesPopupfixIE();}function orgApacheMyfacesPopupRedisplay(){var A=document.getElementById(this.popupId);A.style.display="block";orgApacheMyfacesPopupCurrentlyOpenedPopup=A;orgApacheMyfacesPopupfixIE();}function orgApacheMyfacesPopupGetScrollingX(){if(self.pageXOffset){return self.pageXOffset;}else{if(document.documentElement&&document.documentElement.scrollLeft){return document.documentElement.scrollLeft;}else{if(document.body){return document.body.scrollLeft;}else{return 0;}}}}function orgApacheMyfacesPopupGetScrollingY(){if(self.pageYOffset){return self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop;}else{if(document.body){return document.body.scrollTop;}else{return 0;}}}}