},
open : function ($image, current, target) {
- var self = this,
++
+ var body = $(document.body),
root = target.closest('.clearing-assembled'),
- container = self.S('div', root).first(),
- visible_image = self.S('.visible-img', container),
- image = self.S('img', visible_image).not($image),
- label = self.S('.clearing-touch-label', container);
+ container = $('div', root).first(),
+ visible_image = $('.visible-img', container),
+ image = $('img', visible_image).not($image);
if (!this.locked()) {
// set the image to the selected thumbnail
.attr('src', this.load($image))
.css('visibility', 'hidden');
- this.loaded(image, function () {
+ this.image_loaded(image, function () {
image.css('visibility', 'visible');
// toggle the gallery
+ body.css('overflow', 'hidden');
root.addClass('clearing-blackout');
container.addClass('clearing-container');
visible_image.show();