aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/friendship/ui/LikeList.js
diff options
context:
space:
mode:
authorAnqi Xu2012-06-24 01:38:24 -0400
committerAnqi Xu2012-06-24 01:38:24 -0400
commit020def806678f46fc39a2baad5a48e58c41ec742 (patch)
tree015c49112ecf9b90a540b366a4a65a5504cac449 /Resources/friendship/ui/LikeList.js
parentb847cd11cebcc0a56ffc2043d4372e3be488e45c (diff)
downloadLikeFeed-020def806678f46fc39a2baad5a48e58c41ec742.tar.bz2
Added auto-refresh
Diffstat (limited to 'Resources/friendship/ui/LikeList.js')
-rw-r--r--Resources/friendship/ui/LikeList.js13
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');
+ }
+ };
+})();