Browse Source

Add photo object to tag data

Douglas Thrift 6 years ago
parent
commit
8b4c5f30ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/js/app.js

+ 1 - 1
public/js/app.js

@@ -71,7 +71,7 @@ $(function() {
                     privacyTag.text('private');
                 }
 
-                let photoTag = $('<div class="photo" column>').addClass('license-' + photo.license).addClass(privacy);
+                let photoTag = $('<div class="photo" column>').addClass('license-' + photo.license).addClass(privacy).data('photo', photo);
                 let ignoreTag = $('<button>').click(function() {
                     ignore = !photo.ignore;
                     ignoreTag.prop('disabled', true)