Fixed photo.getID

This commit is contained in:
Tobias Reich 2015-03-15 01:07:41 +01:00
parent 7314245e60
commit 56443a16c2

View File

@ -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;
}