Exemplo n.º 1
0
Ti.include('/includes/enums.js');
Ti.include('/includes/lib/json.i18n.js');

var Ui = require('includes/ui'),
	Utils = require('includes/utils'),

//page used when through the help process, to determine the user's freebox model
win = Ti.UI.currentWindow,

tableView = Ti.UI.createTableView({
	data: [{
		title: Utils.getModelString(Model.FREEBOX_HD),
		hasChild: true,
		model: Model.FREEBOX_HD
	}, {
		title: Utils.getModelString(Model.FREEBOX_PLAYER),
		hasChild: true,
		model: Model.FREEBOX_REVOLUTION
	}],
	style: Ti.UI.iPhone.TableViewStyle.GROUPED,
	selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.GRAY,
	backgroundColor: 'transparent',
	rowBackgroundColor: 'white'
});

tableView.addEventListener('click', function(e) {
	var newWin = Ti.UI.createWindow({
		model: e.rowData.model,
		helpTo: win.helpTo,
		title: e.rowData.getTitle(),
		url: '../info_display.js',
Exemplo n.º 2
0
//used to set all the data in their respective fields
function setFields() {
	profileRow.getChildren()[0].setText(I('more.settings.profile.prefix', profile.toString()));
	codeRow.getChildren()[0].setValue(code);
	hdRow.getChildren()[0].setText(I('more.settings.hd.prefix', hd.toString()));
	modelRow.getChildren()[0].setText(Utils.getModelString(model));
}