diff --git a/src/scripts/photo.js b/src/scripts/photo.js index 7a83f01..bad5bf6 100644 --- a/src/scripts/photo.js +++ b/src/scripts/photo.js @@ -17,8 +17,8 @@ photo.getID = function() { if (photo.json) id = photo.json.id; else id = $('.photo:hover, .photo.active').attr('data-id'); - if ($.isNumeric(id)===false) return id; - else return false; + if ($.isNumeric(id)===true) return id; + else return false; }