aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/friendship/ui/WebView.js
diff options
context:
space:
mode:
authorTeddy Wing2012-06-23 22:44:13 -0400
committerTeddy Wing2012-06-23 22:44:13 -0400
commit1bbd391741c2b8826fcb1002b1081b68e6516493 (patch)
tree5dbd361c942a8ca057dcb5e09d38eb58944b0eba /Resources/friendship/ui/WebView.js
parentc678acdf82f6b3dac4a9fd7bce9f204f8c0afd78 (diff)
downloadLikeFeed-1bbd391741c2b8826fcb1002b1081b68e6516493.tar.bz2
Webview: click on a row in the LikeList, and a webview will open.
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;
+ };
+})();