Merge remote-tracking branch 'origin/master'

This commit is contained in:
Blake Grotewold
2016-09-17 15:18:22 -04:00
3 changed files with 34 additions and 6 deletions
+29 -2
View File
@@ -135,8 +135,8 @@
$('<span>')
.addClass('appStore menuBtn')
.text(_('app store.'))
.click(function() { window.open('https://itunes.apple.com/app/apple-store/id736683061?pt=2073437&ct=adrproper&mt=8'); })
.text(_('get the app.'))
.click(Engine.getApp)
.appendTo(menu);
$('<span>')
@@ -403,6 +403,33 @@
}
},
getApp: function() {
Events.startEvent({
title: _('Get the App'),
scenes: {
start: {
text: [_('bring the room with you.')],
buttons: {
'ios': {
text: _('ios'),
nextScene: 'end',
onChoose: function () {
window.open('https://itunes.apple.com/app/apple-store/id736683061?pt=2073437&ct=adrproper&mt=8');
}
},
'android': {
text: _('android'),
nextScene: 'end',
onChoose: function() {
window.open('https://play.google.com/store/apps/details?id=com.yourcompany.adarkroom');
}
}
}
}
}
})
},
share: function() {
Events.startEvent({
title: _('Share'),