dejanstojanovic / Facebook-Album-Browser

jQuery plugin for browsing public albums of a Facebook account
http://dejanstojanovic.github.io/Facebook-Album-Browser/
MIT License
74 stars 42 forks source link

if number of images in the folder is < photosPageSize #62

Open zsavicreative opened 7 years ago

zsavicreative commented 7 years ago

the is more of a request then an issue.. This plugin is absolutely amazing. and kudos to your coding skills. Thanks a bunch for this.

it causes the "more photos" button to still appear and doesn't get removed even after click.

the situation being single page displaying multiple albums using the same FacebookAlbumBrowser function. So when using a specific number for photosPageSize which is ideal for a larger quantity album creates this unhandled scenario with displaying 'more photos' button even if there are no more photos to show.

I tried to make changes to jquery.fb.albumbrowser.js but I've had no luck with adding a if statement to check if all images are being displayed to hide more photos button.

Also in my scenario I've created a structure where by each album requested on the page has its own 'more photos' button.

If you have issues recreating the scenario I'll be happy to show you what I'm talking about... I tried to recreate it in code pen but was unable due to only having access to one dom instance