diff options
Diffstat (limited to 'public/assets/js/app.js')
| -rw-r--r-- | public/assets/js/app.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js index bfd317b..c6d31ec 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -63,16 +63,16 @@ var app = (function() { } app.resize = function(){ - $(".cell, .next, .previous").css({ 'display': 'none' }) + $(".active .cell,.active .next,.active .previous").css({ 'display': 'none' }) $('body').addClass('resizing') debounce(function() { - $(".item").addClass("hidden") + $(".active.item").addClass("hidden") setTimeout(function(){ - $(".cell, .next, .previous").css({ 'height': ($(".top").height() + 'px'), 'display': 'inline-block' }) + $(".active .cell,.active .next,.active .previous").css({ 'height': ($(".active .top").height() + 'px'), 'display': 'inline-block' }) app.view.$el.removeClass("hidden") - $('.top').flickity('resize') + $('.active .top').flickity('resize') $('body').removeClass('resizing') - }, 20) + }, 400) }, 400) } |
