aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/friendship/ui/WebView.js
blob: f2a7dc32daa3874341be4a7c2cf9847d87513ead (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(function() {
	fs.ui.createWebViewWin = function(_args) {
		var options = _args || {}
		
		var win = Ti.UI.createWindow({
			barColor: fs.ui.styles.navBarColour,
			title: 'Sphnx', //(options['title']) ? options['title'] : '',
			backButtonTitle: 'Back'
		});
		
		var webview = Ti.UI.createWebView({
			url: options['url'],
			top: -44 // Removes the Facebook navbar. Eventually, we should only do this on facebook webviews, but as long as we only have facebook webviews, we can just hard-code it in there.
		});
		
		win.add(webview);
		
		return win;
	};
})();