This commit is contained in:
Gwen 2015-08-10 00:49:04 +02:00
parent fd2cebb699
commit 12fce09295
2 changed files with 7 additions and 4 deletions

View file

@ -7,7 +7,7 @@ IonLoading = {
customTemplate: null,
backdrop: false
}, userOptions);
if (options.backdrop) {
IonBackdrop.retain();
$('.backdrop').addClass('backdrop-loading');
@ -42,7 +42,10 @@ IonLoading = {
$loadingEl.removeClass('visible');
Blaze.remove(this.view);
this.view = null;
}.bind(this), 400);
}.bind(this), 0);
}
Meteor.setTimeout(function() {
$('.loading-container').remove();
}, 0)
}
};

View file

@ -20,12 +20,12 @@ Template.ionSlideBox.rendered = function () {
return '<span class="slider-pager-page icon ion-record"></span>';
}
});
this.$('.ion-slide-box').on('afterChange', function (event, slick, currentSlide) {
$(this).trigger({type: 'onSlideChanged', index: currentSlide});
});
};
Template.ionSlideBox.destroyed = function () {
this.$('.ion-slide-box').slick('unslick');
var $slideBox = this.$('.ion-slide-box');
if ($slideBox.hasClass('slick-initialized')) $slideBox.slick('unslick');
};