mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 16:08:34 +02:00
ios alert now keyboard :(
This commit is contained in:
parent
015a17d015
commit
8144565211
5 changed files with 108 additions and 96 deletions
|
@ -12,6 +12,7 @@ var DisabledMap = require('../level/disabledMap').DisabledMap;
|
|||
var Command = require('../models/commandModel').Command;
|
||||
var GitShim = require('../git/gitShim').GitShim;
|
||||
|
||||
var Views = require('../views');
|
||||
var ModalTerminal = require('../views').ModalTerminal;
|
||||
var ModalAlert = require('../views').ModalAlert;
|
||||
var MultiView = require('../views/multiView').MultiView;
|
||||
|
@ -172,8 +173,10 @@ var Sandbox = Backbone.View.extend({
|
|||
'exit level': this.exitLevel,
|
||||
'level': this.startLevel,
|
||||
'sandbox': this.exitLevel,
|
||||
'levels': this.showLevels
|
||||
'levels': this.showLevels,
|
||||
'iosAlert': this.iosAlert
|
||||
};
|
||||
|
||||
var method = commandMap[command.get('method')];
|
||||
if (!method) { throw new Error('no method for that wut'); }
|
||||
|
||||
|
@ -199,6 +202,16 @@ var Sandbox = Backbone.View.extend({
|
|||
}
|
||||
},
|
||||
|
||||
iosAlert: function(command, deferred) {
|
||||
var whenClosed = Q.defer();
|
||||
var view = new Views.iOSKeyboardView({
|
||||
deferred: whenClosed
|
||||
});
|
||||
whenClosed.promise.then(function() {
|
||||
command.finishWith(deferred);
|
||||
});
|
||||
},
|
||||
|
||||
delay: function(command, deferred) {
|
||||
var amount = parseInt(command.get('regexResults')[1], 10);
|
||||
setTimeout(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue