Skip to content

Commit

Permalink
Fixed the stupid zoom gallery for Alex
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Apr 13, 2012
1 parent b1aa73d commit 42446ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/modules/isotope/templates/iso_gallery_zoom.html5
Expand Up @@ -9,7 +9,7 @@
<script>
var zoom_<?php echo $this->product_id; ?>;
window.addEvent('load', function(){ zoom_<?php echo $this->product_id; ?> = Isotope.zoomGallery(zoom_<?php echo $this->product_id; ?>, '<?php echo $this->large; ?>'); });
window.addEvent('ajaxready', function(){ zoom_<?php echo $this->product_id; ?> = Isotope.zoomGallery(zoom_<?php echo $this->product_id; ?>, '<?php echo $this->large; ?>'); });
window.addEvent('ajaxready', function(){ zoom_<?php echo $this->product_id; ?> = Isotope.zoomGallery(zoom_<?php echo $this->product_id; ?>, document.getElement('#<?php echo $this->name; ?>_mediumsize a.zoomImage').get('href')); });
</script>
<?php else: ?>
<figure class="image_container"><div class="zoom"><a href="<?php echo $this->href_reader; ?>" class="zoomImage" title="<?php echo $this->desc; ?>"><img src="<?php echo $this->{$this->type}; ?>" alt="<?php echo $this->alt; ?>"<?php echo $this->{$this->type.'_size'}; ?>></a></div></figure>
Expand Down
2 changes: 1 addition & 1 deletion system/modules/isotope/templates/iso_gallery_zoom.xhtml
Expand Up @@ -10,7 +10,7 @@
<!--//--><![CDATA[//><!--
var zoom_<?php echo $this->product_id; ?>;
window.addEvent('load', function(){ zoom_<?php echo $this->product_id; ?> = Isotope.zoomGallery(zoom_<?php echo $this->product_id; ?>, '<?php echo $this->large; ?>'); });
window.addEvent('ajaxready', function(){ zoom_<?php echo $this->product_id; ?> = Isotope.zoomGallery(zoom_<?php echo $this->product_id; ?>, '<?php echo $this->large; ?>'); });
window.addEvent('ajaxready', function(){ zoom_<?php echo $this->product_id; ?> = Isotope.zoomGallery(zoom_<?php echo $this->product_id; ?>, document.getElement('#<?php echo $this->name; ?>_mediumsize a.zoomImage').get('href')); });
//--><!]]>
</script>
<?php else: ?>
Expand Down

0 comments on commit 42446ee

Please sign in to comment.