Skip to content

Commit

Permalink
Enable image popup on < 500px wide screens
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes authored and sobkowiak committed Jul 18, 2016
1 parent 6bab7ad commit 9419f97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ $(document).ready(function(){

// Magnific-Popup options
$(".image-popup").magnificPopup({
disableOn: function() {
if( $(window).width() < 500 ) {
return false;
}
return true;
},
// disableOn: function() {
// if( $(window).width() < 500 ) {
// return false;
// }
// return true;
// },
type: 'image',
tLoading: 'Loading image #%curr%...',
gallery: {
Expand Down
Loading

0 comments on commit 9419f97

Please sign in to comment.