mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-22 21:53:10 +00:00
Simplify
This commit is contained in:
@@ -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));
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user