aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnqi Xu2012-06-23 23:38:09 -0400
committerAnqi Xu2012-06-23 23:38:09 -0400
commitb8b6d249d2d28b443627ef5c89de43907feb311b (patch)
tree07c6bdd58f62c40c34cbf35c95e547626fccf74f
parent87447e04576ab5cf2d87d6f93664b488633ec21c (diff)
downloadLikeFeed-b8b6d249d2d28b443627ef5c89de43907feb311b.tar.bz2
Added some more debug printouts
-rw-r--r--Resources/friendship/ui/LikeList.js27
-rw-r--r--tiapp.xml2
2 files changed, 16 insertions, 13 deletions
diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js
index 64850f0..102b6f7 100644
--- a/Resources/friendship/ui/LikeList.js
+++ b/Resources/friendship/ui/LikeList.js
@@ -6,6 +6,13 @@
// Reason for Factory: templating format of the row
var row = Ti.UI.createTableViewRow();
+ row.addEventListener('click', function(e) {
+ Ti.UI.currentTabGroup.activeTab.open(fs.ui.createWebViewWin({
+ title: key.name,
+ url: key.page_url
+ }));
+ });
+
/*
description
fan_count
@@ -39,27 +46,23 @@
return row;
}
- fs.ui.addItems = function( list )
- {
- Ti.UI.createAlertDialog( {title:"Items: " + list.list.length} ).show();
-
- for ( key in list.list ) {
- ll_view.appendRow( create_row( key ) );
- }
- }
-
fs.ui.createLikeList = function() {
var ll_view = Ti.UI.createTableView();
-
+ /*
ll_view.addEventListener('click', function(e) {
Ti.UI.currentTabGroup.activeTab.open(fs.ui.createWebViewWin({
title: e.title,
url: e.url
}));
});
+ */
-
- Ti.API.addEventListener( "processPosts", fs.ui.addItems );
+ Ti.API.addEventListener( "processPosts", function( list ) {
+ //Ti.UI.createAlertDialog( {title:"Items: " + list.list.length} ).show();
+ for ( key in list.list ) {
+ ll_view.appendRow( create_row( list.list[key] ) );
+ }
+ });
return ll_view;
};
diff --git a/tiapp.xml b/tiapp.xml
index 9cc4a2f..6c7786d 100644
--- a/tiapp.xml
+++ b/tiapp.xml
@@ -7,7 +7,7 @@
<target device="android">false</target>
<target device="blackberry">false</target>
</deployment-targets>
- <sdk-version>1.6.2</sdk-version>
+ <sdk-version>2.0.2.GA</sdk-version>
<id>com.likefeed.LikeFeed</id>
<name>LikeFeed</name>
<version>1.0</version>