This commit is contained in:
John Firebaugh
2013-02-12 20:19:36 -08:00
parent 806de963db
commit 8928e757a4
2 changed files with 5 additions and 7 deletions

View File

@@ -149,13 +149,8 @@ iD.ui = function(context) {
context.enter(iD.modes.Browse(context));
context.container()
.call(iD.ui.Splash(context));
if (history.lock() && history.restorableChanges()) {
context.container()
.call(iD.ui.Restore(context))
}
.call(iD.ui.Splash(context))
.call(iD.ui.Restore(context));
};
};

View File

@@ -1,5 +1,8 @@
iD.ui.Restore = function(context) {
return function(selection) {
if (!context.history().lock() || !context.history().restorableChanges())
return;
var modal = iD.ui.modal(selection);
modal.select('.modal')