[pLog-svn] r5795 - plog/trunk/js/ui

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Aug 5 14:54:16 EDT 2007


Author: oscar
Date: 2007-08-05 14:54:16 -0400 (Sun, 05 Aug 2007)
New Revision: 5795

Modified:
   plog/trunk/js/ui/contentoverlay.js
Log:
Just adding the markup now, but hopefully one day we'll get overlays that have round corners... no web 2.0 can ever do without Round Cornrs (beta)!  :)


Modified: plog/trunk/js/ui/contentoverlay.js
===================================================================
--- plog/trunk/js/ui/contentoverlay.js	2007-08-05 18:21:03 UTC (rev 5794)
+++ plog/trunk/js/ui/contentoverlay.js	2007-08-05 18:54:16 UTC (rev 5795)
@@ -15,7 +15,7 @@
 			draggable: false,
 			effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration: 0.25},
 			underlay:"shadow",
-			modal:true			
+			modal:true
 		}
 	}
 	Lifetype.UI.ContentOverlay.superclass.constructor.call( this, el, userConfig );
@@ -75,12 +75,22 @@
 Lifetype.UI.ContentOverlay.prototype.show = function()
 {
 	c = YAHOO.util.Connect.asyncRequest( 'GET', this.url, { scope:this, success: function(o) {
-			this.setBody( o.responseText );
+		
+			var body = '';
+			// add the rounded corners
+		    body = '<div class="overlay_corner_tr"></div>' +
+		           '<div class="overlay_corner_tl"></div>' +
+		           '<div class="overlay_corner_br"></div>' +
+		           '<div class="overlay_corner_bl"></div>';
+			
+			body = body + o.responseText;			
+			this.setBody( body );
 			this.center();
 			
 			// this hack allows us to execute any javascript code that has been fetched via
 			// XmlHttpRequest and assigned to a node via innerHTML
 			s = document.createElement( 'span' );
+			
 			s.innerHTML = o.responseText;
 			Lifetype.execJS( s );
 		}



More information about the pLog-svn mailing list