diff --git a/README.textile b/README.textile index 47aec3e..52989a5 100644 --- a/README.textile +++ b/README.textile @@ -71,13 +71,13 @@ var config = { $('#photos').flickr(config).photosGetRecent() // recent 8 photos from a user's contacts -$('#photos').flickr(config).photosGetContactsPublicPhotos({user_id: 'xxx', count: 8}) +$('#photos').flickr(config).photosGetContactsPublicPhotos({user_id: 'xxx', per_page: 8}) // recent 10 photos from a user's stream -$('#photos').flickr(config).photosSearch({user_id: 'xxx', count: 10}) +$('#photos').flickr(config).photosSearch({user_id: 'xxx', per_page: 10}) // recent 10 photos from a user's stream with the tag 'portfolio' -$('#photos').flickr(config).photosSearch({user_id: 'xxx', count: 10, tags: 'portfolio'}) +$('#photos').flickr(config).photosSearch({user_id: 'xxx', per_page: 10, tags: 'portfolio'}) // recent 10 photos from a particular photoset $('#photoset').flickr(config).photosetsGetPhotos({photoset_id: '72157600185772527', per_page: 10}) diff --git a/jquery.flickr.js b/jquery.flickr.js index 6522d6c..dc93a11 100644 --- a/jquery.flickr.js +++ b/jquery.flickr.js @@ -83,6 +83,7 @@ $.getJSON($.flickr.url(method, options), function(data) { photos = (data.photos === undefined ? data.photoset : data.photos) elements.append($.flickr.thumbnail.process(photos)) + $(document).trigger("flickrLoaded"); }) }) }