aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/friendship/ui/WebView.js
diff options
context:
space:
mode:
Diffstat (limited to 'Resources/friendship/ui/WebView.js')
-rw-r--r--Resources/friendship/ui/WebView.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/Resources/friendship/ui/WebView.js b/Resources/friendship/ui/WebView.js
new file mode 100644
index 0000000..6b3ad16
--- /dev/null
+++ b/Resources/friendship/ui/WebView.js
@@ -0,0 +1,18 @@
+(function() {
+ fs.ui.createWebViewWin = function(_args) {
+ var options = _args || {}
+
+ var win = Ti.UI.createWindow({
+ title: (options['title']) ? options['title'] : '',
+ backButtonTitle: 'Back'
+ });
+
+ var webview = Ti.UI.createWebView({
+ url: options['url']
+ });
+
+ win.add(webview);
+
+ return win;
+ };
+})();