Fixed star and share badge

This commit is contained in:
Tobias Reich 2015-07-17 09:57:44 +02:00
parent 8a940c833a
commit d812a085c4
2 changed files with 6 additions and 6 deletions

BIN
dist/main.js vendored Executable file → Normal file

Binary file not shown.

View File

@ -172,19 +172,19 @@ view.album = {
star: function(photoID) { star: function(photoID) {
let $badge = $('.photo[data-id="' + photoID + '"] .iconic-star') let $badge = $('.photo[data-id="' + photoID + '"] .icn-star')
if (album.json.content[photoID].star==='1') $badge.addClass('.badge--visible') if (album.json.content[photoID].star==='1') $badge.addClass('badge--visible')
else $badge.removeClass('.badge--visible') else $badge.removeClass('badge--visible')
}, },
public: function(photoID) { public: function(photoID) {
let $badge = $('.photo[data-id="' + photoID + '"] .iconic-share') let $badge = $('.photo[data-id="' + photoID + '"] .icn-share')
if (album.json.content[photoID].public==='1') $badge.addClass('.badge--visible') if (album.json.content[photoID].public==='1') $badge.addClass('badge--visible')
else $badge.removeClass('.badge--visible') else $badge.removeClass('badge--visible')
}, },