diff options
| author | Nikita Bernstein | 2012-06-23 23:22:04 -0400 | 
|---|---|---|
| committer | Nikita Bernstein | 2012-06-23 23:22:04 -0400 | 
| commit | 87447e04576ab5cf2d87d6f93664b488633ec21c (patch) | |
| tree | 41be5ff0efdb9f2a430ca1c7f02d59b5342a1e1f /Resources/friendship/ui/LikeList.js | |
| parent | e7927e6ac5f1ef096c39360889d6e7fe353e2d2f (diff) | |
| download | LikeFeed-87447e04576ab5cf2d87d6f93664b488633ec21c.tar.bz2 | |
Modified output to table
Diffstat (limited to 'Resources/friendship/ui/LikeList.js')
| -rw-r--r-- | Resources/friendship/ui/LikeList.js | 23 | 
1 files changed, 16 insertions, 7 deletions
| diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js index fe7555b..64850f0 100644 --- a/Resources/friendship/ui/LikeList.js +++ b/Resources/friendship/ui/LikeList.js @@ -1,11 +1,20 @@  (function() { -	function create_row( title ) +	function create_row( key )  	{ +		// Ti.UI.createAlertDialog( {title:"key " + key.name} ).show(); +  		// Reason for Factory: templating format of the row  		var row = Ti.UI.createTableViewRow(); -		 + +			/*		 +			description +			fan_count +			page_url +			website +			*/ +  		var profile_icon = Ti.UI.createImageView({ -			url:"images/fb_test_profile.jpg", +			url:key.pic_square,  			width:50,  			height:50,  			left:0, @@ -13,7 +22,7 @@  		});  		var content = Ti.UI.createLabel({ -			text:title, +			text:key.name,  			font:{fontSize:12,fontWeight:'bold'},  			width:'auto',  			textAlign:'left', @@ -32,8 +41,10 @@  	fs.ui.addItems = function( list )  	{ +		Ti.UI.createAlertDialog( {title:"Items: " + list.list.length} ).show(); +		  		for ( key in list.list ) { -			Ti.API.info( list.list[key] ); +			ll_view.appendRow( create_row( key ) );  		}  	} @@ -47,8 +58,6 @@  			}));  		}); -		ll_view.appendRow( create_row( 'OMG, I like totally like Skrillex.') ); -		ll_view.appendRow( create_row( 'Seriously, this is amazing.  You totally need to party.') );  		Ti.API.addEventListener( "processPosts", fs.ui.addItems ); | 
