IG_LightBox - Version 1.0.6

Version Notes

Enjoy it ;)

Download this release

Release Info

Developer Magento Core Team
Extension IG_LightBox
Version 1.0.6
Comparing to
See all releases


Code changes from version 1.0.5 to 1.0.6

app/design/frontend/default/default/template/ig_lightbox/media.phtml CHANGED
@@ -100,12 +100,15 @@
100
  ?>
101
  </a>
102
 
103
- <?php if (count($this->getGalleryImages()) > 0): ?>
 
 
 
 
104
  <div class="more-views">
105
  <h4><?php echo $this->__('More Views') ?></h4>
106
  <ul>
107
  <?php
108
- $js_load=array();
109
  foreach ($this->getGalleryImages() as $_image)
110
  {
111
  $src=$this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(true)->keepFrame(false)->resize($_ig_lightbox_big_width, $_ig_lightbox_big_height);
@@ -125,7 +128,7 @@
125
  ?>
126
  </ul>
127
  </div>
128
- <?php endif; ?>
129
 
130
  <script type="text/javascript">
131
  Event.observe(window, 'load', function() {
100
  ?>
101
  </a>
102
 
103
+ <?php
104
+ $js_load=array();
105
+ if (count($this->getGalleryImages()) > 0)
106
+ {
107
+ ?>
108
  <div class="more-views">
109
  <h4><?php echo $this->__('More Views') ?></h4>
110
  <ul>
111
  <?php
 
112
  foreach ($this->getGalleryImages() as $_image)
113
  {
114
  $src=$this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(true)->keepFrame(false)->resize($_ig_lightbox_big_width, $_ig_lightbox_big_height);
128
  ?>
129
  </ul>
130
  </div>
131
+ <?php } ?>
132
 
133
  <script type="text/javascript">
134
  Event.observe(window, 'load', function() {
skin/frontend/default/default/js/ig_lightbox.js CHANGED
@@ -75,12 +75,14 @@ function ig_lightbox_hide()
75
  width : '10px'
76
  });
77
 
78
- document.body.style.overflow="auto";
79
  }
80
 
81
  function ig_lightbox_show(n)
82
  {
83
- document.body.style.overflow="hidden";
 
 
84
 
85
  // if (typeof(window.innerHeight) == "undefined")
86
  // {
75
  width : '10px'
76
  });
77
 
78
+ document.body.style.overflowX="auto";
79
  }
80
 
81
  function ig_lightbox_show(n)
82
  {
83
+ if (!ig_lightbox_img_sequence.length) return;
84
+
85
+ document.body.style.overflowX="hidden";
86
 
87
  // if (typeof(window.innerHeight) == "undefined")
88
  // {