Skip to content

Commit

Permalink
Added Dojo Mobile to the list, easily the sexiest of them all. Made j…
Browse files Browse the repository at this point in the history
…Query Mobile available on iPad.
  • Loading branch information
Mindelusions committed Apr 16, 2012
1 parent af912aa commit 06c189d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Resources/ui/common/ApplicationTabGroup.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,19 +50,18 @@ function ApplicationTabGroup() {
}); });
platformWin.containingTab = platformTab; platformWin.containingTab = platformTab;


self.addTab(phoneTab);
self.addTab(platformTab);

var mashupsTab = Ti.UI.createTab({ var mashupsTab = Ti.UI.createTab({
title:L('mashups_win_title'), title:L('mashups_win_title'),
icon:'/images/tabs/KS_nav_mashup.png', icon:'/images/tabs/KS_nav_mashup.png',
window:mashupsWin window:mashupsWin
}); });
mashupsWin.containingTab = mashupsTab; mashupsWin.containingTab = mashupsTab;

self.addTab(phoneTab);
self.addTab(platformTab);
self.addTab(mashupsTab); self.addTab(mashupsTab);
} }



self.addEventListener('open',function() { self.addEventListener('open',function() {
Titanium.UI.setBackgroundColor('#fff'); Titanium.UI.setBackgroundColor('#fff');
}); });
Expand Down
1 change: 1 addition & 0 deletions Resources/ui/common/MashupsWindow.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function MashupsWindow(title) {
{title:'Twitter', hasChild:true, test:'ui/common/mashups/twitter', title_image:'/images/twitter_logo_header.png'}, {title:'Twitter', hasChild:true, test:'ui/common/mashups/twitter', title_image:'/images/twitter_logo_header.png'},
{title:'Foursquare', hasChild:true, test:'ui/common/mashups/foursquare', title_image:'/images/light-poweredby-foursquare.png'}, {title:'Foursquare', hasChild:true, test:'ui/common/mashups/foursquare', title_image:'/images/light-poweredby-foursquare.png'},
{title:'Facebook', hasChild:true, test:'ui/common/mashups/facebook'}, {title:'Facebook', hasChild:true, test:'ui/common/mashups/facebook'},
{title:'Dojo Mobile', hasChild:true, test:'ui/common/mashups/dojomobile'},
{title:'Sencha Touch', hasChild:true, test:'ui/common/mashups/senchatouch'}, {title:'Sencha Touch', hasChild:true, test:'ui/common/mashups/senchatouch'},
{title:'jQuery mobile', hasChild:true, test:'ui/common/mashups/jquery_mobile'}, {title:'jQuery mobile', hasChild:true, test:'ui/common/mashups/jquery_mobile'},
{title:'YQL', hasChild:true, test:'ui/common/mashups/yql'} {title:'YQL', hasChild:true, test:'ui/common/mashups/yql'}
Expand Down
15 changes: 15 additions & 0 deletions Resources/ui/common/mashups/dojomobile.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,15 @@
function DojoMobile() {
var self = Ti.UI.createWindow({
backgroundColor:'#fff'
});

var wview = Ti.UI.createWebView({
url:'http://demos.dojotoolkit.org/demos/mobileGallery/demo-iphone.html'
});

self.add(wview);

return self;
};

module.exports = DojoMobile;
15 changes: 15 additions & 0 deletions Resources/ui/tablet/ApplicationWindow.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ function ApplicationWindow(title) {
base+'3298.js', base+'3298.js',
base+'split_view_features.js' base+'split_view_features.js'
); );

var jQueryMobile = require('ui/common/mashups/jquery_mobile'),
jqMobile = new jQueryMobile();

/* /*
var SVNav = require('ui/tablet/ios/baseui/split_view_nav.js'), var SVNav = require('ui/tablet/ios/baseui/split_view_nav.js'),
SVNav = require('ui/tablet/ios/baseui/split_view_nav.js'), SVNav = require('ui/tablet/ios/baseui/split_view_nav.js'),
Expand Down Expand Up @@ -122,6 +126,17 @@ function ApplicationWindow(title) {
SplitFeatures.open(); SplitFeatures.open();
}); });
self.add(b7); self.add(b7);

var b8 = Ti.UI.createButton({
title:'jQuery Mobile',
width:300,
height:50,
top:590
});
b8.addEventListener('click', function() {
jqMobile.open();
});
self.add(b8);


if (Ti.App.Properties.getBool('showNotice', true)){ if (Ti.App.Properties.getBool('showNotice', true)){
var alertNotice = Ti.UI.createAlertDialog({ var alertNotice = Ti.UI.createAlertDialog({
Expand Down

0 comments on commit 06c189d

Please sign in to comment.