mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-28 22:55:10 +02:00
merge main
This commit is contained in:
commit
b30bcb0395
1 changed files with 25 additions and 19 deletions
|
@ -264,6 +264,7 @@ var Level = Sandbox.extend({
|
||||||
var toIssue = this.level.solutionCommand;
|
var toIssue = this.level.solutionCommand;
|
||||||
var issueFunc = function() {
|
var issueFunc = function() {
|
||||||
this.isShowingSolution = true;
|
this.isShowingSolution = true;
|
||||||
|
this.wasResetAfterSolved = true;
|
||||||
Main.getEventBaton().trigger(
|
Main.getEventBaton().trigger(
|
||||||
'commandSubmitted',
|
'commandSubmitted',
|
||||||
toIssue
|
toIssue
|
||||||
|
@ -281,6 +282,7 @@ var Level = Sandbox.extend({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!LevelStore.isLevelSolved(this.level.id)){
|
||||||
// allow them for force the solution
|
// allow them for force the solution
|
||||||
var confirmDefer = Q.defer();
|
var confirmDefer = Q.defer();
|
||||||
var dialog = intl.getDialog(require('../dialogs/confirmShowSolution'))[0];
|
var dialog = intl.getDialog(require('../dialogs/confirmShowSolution'))[0];
|
||||||
|
@ -300,6 +302,10 @@ var Level = Sandbox.extend({
|
||||||
command.finishWith(deferred);
|
command.finishWith(deferred);
|
||||||
}, confirmView.getAnimationTime());
|
}, confirmView.getAnimationTime());
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
issueFunc();
|
||||||
|
command.finishWith(deferred);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleObjective: function() {
|
toggleObjective: function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue