aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/friendship/ui/WebView.js
blob: d1c8e502cca42f362a2bd8749f82e8a5e0625bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(function() {
	fs.ui.createWebViewWin = function(_args) {
		var options = _args || {}
		
		var win = Ti.UI.createWindow({
			barColor: fs.ui.styles.navBarColour,
			title: (options['title']) ? options['title'] : '',
			backButtonTitle: 'Back'
		});
		
		var webview = Ti.UI.createWebView({
			url: options['url']
		});
		
		win.add(webview);
		
		return win;
	};
})();