From: Marius Gavrilescu Date: Sun, 19 Apr 2015 07:49:42 +0000 (+0300) Subject: Disable modal on small screens X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=a66a1fe02efc1cdf7adfa606de00790b02b3ee72;p=plack-app-gruntmaster.git Disable modal on small screens --- diff --git a/js/10-modal.js b/js/10-modal.js index 62cbb27..9bf83ce 100644 --- a/js/10-modal.js +++ b/js/10-modal.js @@ -13,6 +13,8 @@ function hide_modal () { } $(function() { + if(window.innerWidth < 768) + return; modal = $('.modal')[0]; backdrop = $('.backdrop')[0]; $(modal).on('transitionend', el => {