Skip to content

Commit

Permalink
fixing notifications on bottom of page
Browse files Browse the repository at this point in the history
  • Loading branch information
DDKnoll committed May 12, 2014
1 parent 5e37ba0 commit 3a4f12a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions js/instagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ var instagramFeed = Ractive.extend({
* Loads more instagram data. Either replaces current data, appends data before feed, or appends data after feed
*/
load: function(method){
//No more older data to load. stop now.
if(method == 'after' && this.data.endOfFeed){
return false;
}
if(this.data.loading == true){
//We can only be loading one script at a time.
return false;
Expand Down
3 changes: 1 addition & 2 deletions templates/twitter-feed.rac
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
<h3>Loading More Images</h3>
{{/loading}}
{{#endOfFeed}}
<h3>You have reached the end of the Instagram #SalemMatters feed.</h3>
<p><a class='instructions-button' onClick='insta.set("lightbox", true); insta.set("current", -1);'>Add your own Photo</a></p>
<h3>You have reached the end of the Instagram #{{hashtag}} feed.</h3>
{{/endOfFeed}}
</div>

Expand Down

0 comments on commit 3a4f12a

Please sign in to comment.