[Jifty-commit] r5546 - in jifty/trunk: lib/Jifty/Web

Jifty commits jifty-commit at lists.jifty.org
Wed Jul 9 17:49:58 EDT 2008


Author: trs
Date: Wed Jul  9 17:49:58 2008
New Revision: 5546

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Web/PageRegion.pm

Log:
 r37042 at zot:  tom | 2008-07-09 17:49:20 -0400
 Wait to lazy load the region until the DOM is ready


Modified: jifty/trunk/lib/Jifty/Web/PageRegion.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/PageRegion.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/PageRegion.pm	Wed Jul  9 17:49:58 2008
@@ -291,7 +291,7 @@
             . qq|</script>|;
         if ($self->lazy) {
             $result .= qq|<script type="text/javascript">|
-              . qq|Jifty.update( { 'fragments': [{'region': '|.$self->qualified_name.qq|', 'mode': 'Replace'}], 'actions': {}}, document.getElementById('region-|.$self->qualified_name.qq|'))|
+              . qq|jQuery(function(){ Jifty.update( { 'fragments': [{'region': '|.$self->qualified_name.qq|', 'mode': 'Replace'}], 'actions': {}}, document.getElementById('region-|.$self->qualified_name.qq|'))})|
               . qq|</script>|;
         }
         $result .= qq|<div id="region-| . $self->qualified_name . qq|" class="jifty-region">|;


More information about the Jifty-commit mailing list