Skip to content

Instantly share code, notes, and snippets.

Created July 10, 2012 19:19
Show Gist options
  • Save anonymous/3085639 to your computer and use it in GitHub Desktop.
Save anonymous/3085639 to your computer and use it in GitHub Desktop.
professionsTable.addEventListener('click', function(e)
{
if (e.row.path)
{
var win = Ti.UI.createWindow({
url: e.row.path,
title: e.row.title
});
var profession = e.row.title;
win.profession = profession;
//On Android, tabs don't maintain their own stack of windows
if (Ti.Platform.name == "iPhone OS")
{
Ti.UI.currentTab.open(win);
}
else if (Ti.Platform.name == "Android")
{
win.open();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment