portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r915365 - /portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js
Date Tue, 23 Feb 2010 15:00:30 GMT
Author: woonsan
Date: Tue Feb 23 15:00:29 2010
New Revision: 915365

URL: http://svn.apache.org/viewvc?rev=915365&view=rev
Log:
JS2-1057: Adding screen masking method to support modality

Modified:
    portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js

Modified: portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js?rev=915365&r1=915364&r2=915365&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js
(original)
+++ portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/javascript/jetspeed/jetui/jetui-portal.js
Tue Feb 23 15:00:29 2010
@@ -151,6 +151,16 @@
         margins: [7, 4, 0, 17],
         
         /**
+         * Modal window base z-index
+         */
+        modalWindowBaseZIndex : 16777271,
+        
+        /**
+         * Screen mask element z-index
+         */
+        screenMaskZIndex : 16777271 - 1,
+        
+        /**
          * Construction logic executed during instantiation.
          *
          * @method initializer
@@ -921,6 +931,27 @@
             	}
             });            	
             return next + 1;
+        },
+        
+        /**
+         * @method setScreenMask
+         */
+        setScreenMask : function(mask) {
+            var maskNode = Y.one("#jetspeedScreenMaskNode");
+            if (!mask) {
+                if (maskNode) {
+                    maskNode.setStyle("display", "none");
+                }
+            } else {
+                if (!maskNode) {
+                    maskNode = Y.Node.create("<div id='jetspeedScreenMaskNode'></div>");
+                    maskNode.setStyles( { "display": "none", 
+                        "position": "fixed", "overflow": "hidden", "left": "0px", "top":
"0px", "width": "100%", "height": "100%", "z-index": 16777270, 
+                        "padding": "0px", "margin": "0px", "background": "rgba(255, 255,
255, 0.5)" } );
+                    Y.one("BODY").appendChild(maskNode);
+                }
+                maskNode.setStyle("display", "");
+            }
         }
     });
 



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message