diff options
| author | Anqi Xu | 2012-06-24 01:38:24 -0400 | 
|---|---|---|
| committer | Anqi Xu | 2012-06-24 01:38:24 -0400 | 
| commit | 020def806678f46fc39a2baad5a48e58c41ec742 (patch) | |
| tree | 015c49112ecf9b90a540b366a4a65a5504cac449 /Resources/friendship/ui/LikeList.js | |
| parent | b847cd11cebcc0a56ffc2043d4372e3be488e45c (diff) | |
| download | LikeFeed-020def806678f46fc39a2baad5a48e58c41ec742.tar.bz2 | |
Added auto-refresh
Diffstat (limited to 'Resources/friendship/ui/LikeList.js')
| -rw-r--r-- | Resources/friendship/ui/LikeList.js | 13 | 
1 files changed, 11 insertions, 2 deletions
| diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js index 58574e3..9d334fc 100644 --- a/Resources/friendship/ui/LikeList.js +++ b/Resources/friendship/ui/LikeList.js @@ -61,7 +61,16 @@  			Ti.App.fireEvent('app:hide.loader');  		}); -		 +				  		return ll_view;  	}; - })(); +	 +	fs.ui.refreshLikeList = function(e) { +		if (Ti.Facebook.loggedIn) { +			Ti.App.fireEvent('app:show.loader'); +			fs.core.queryAllFriendPostsFQL(); +		} else { +			Ti.Facebook.fireEvent('login'); +		} +	}; +})(); | 
