Skip to content

Commit

Permalink
Enable image popup on < 500px wide screens
Browse files Browse the repository at this point in the history
- Close #385
  • Loading branch information
mmistakes committed Jul 11, 2016
1 parent 143315e commit 690f111
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 690f111

Please sign in to comment.