<commit_before>// by default the modal window has a nav bar
// since we're embedding a navgroup inside the modal
// window which also has a nav bar, we ask him to hide it

var open = Ti.UI.createButton({
	title:'Open nav group',
	top:150,
	width:200,
	height:40
});
open.addEventListener('click', function() {
	modal.open({modal:true});
});
Ti.UI.currentWindow.add(open);

var modal = Ti.UI.createWindow({
	navBarHidden:true
});

var modalWin = Ti.UI.createWindow({
	backgroundColor:"red"
});

var nav = Ti.UI.iPhone.createNavigationGroup({
	window:modalWin
});

var table = Ti.UI.createTableView({
	style:Ti.UI.iPhone.TableViewStyle.GROUPED,
	data:[{title:"Well look at this"},{title:"TweetDeck is cool"}]
});
modalWin.add(table);

var done = Titanium.UI.createButton({
	systemButton:Titanium.UI.iPhone.SystemButton.DONE
});

modalWin.setRightNavButton(done);
done.addEventListener('click',function()
{
	modal.close();
});

table.addEventListener('click',function(e)
{
	var b = Titanium.UI.createButton({
		title:'button',
		style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED
	});
	var w = Ti.UI.createWindow({
		title:e.rowData.title,
		rightNavButton:b
	});
	w.addEventListener('focus',function()
	{
		Ti.API.info("nav group window -- focus event");
	});
	w.addEventListener('blur',function()
	{
		Ti.API.info("nav group window -- blur event");
	});
	var b = Ti.UI.createButton({
		title:"Close Nav",
		width:120,
		height:40
	});
	b.addEventListener('click',function()<commit_msg>[#2268] Test for popping top nav window without animation.<commit_after>// by default the modal window has a nav bar
// since we're embedding a navgroup inside the modal
// window which also has a nav bar, we ask him to hide it

var open = Ti.UI.createButton({
	title:'Open nav group',
	top:150,
	width:200,
	height:40
});
open.addEventListener('click', function() {
	modal.open({modal:true});
});
Ti.UI.currentWindow.add(open);

var modal = Ti.UI.createWindow({
	navBarHidden:true
});

var modalWin = Ti.UI.createWindow({
	backgroundColor:"red"
});

var nav = Ti.UI.iPhone.createNavigationGroup({
	window:modalWin
});

var table = Ti.UI.createTableView({
	style:Ti.UI.iPhone.TableViewStyle.GROUPED,
	data:[{title:"Well look at this"},{title:"TweetDeck is cool"}]
});
modalWin.add(table);

var done = Titanium.UI.createButton({
	systemButton:Titanium.UI.iPhone.SystemButton.DONE
});

modalWin.setRightNavButton(done);
done.addEventListener('click',function()
{
	modal.close();
});

table.addEventListener('click',function(e)
{
	var b = Titanium.UI.createButton({
		title:'Back (no anim)',
		style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED
	});
	b.addEventListener('click', function() {
		nav.close(w,{animated:false});
	});
	var w = Ti.UI.createWindow({
		title:e.rowData.title,
		rightNavButton:b
	});
	w.addEventListener('focus',function()
	{
		Ti.API.info("nav group window -- focus event");
	});
	w.addEventListener('blur',function()
	{
		Ti.API.info("nav group window -- blur event");
	});
	var b = Ti.UI.createButton({
		title:"Close Nav",
		width:120,
		height:40
	});
	b.addEventListener('click',function()
{'fraction_non_alphanumeric': 0.16661295520464067, 'fraction_numerical': 0.009668063164679342, 'mean_word_length': 5.027184466019418, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2133616', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1051, 'n_words': 222}