1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

common: move modal manager clear code to clear method, and call it on micromodal close

This commit is contained in:
David Sevilla Martin
2020-03-11 18:50:22 -04:00
parent 2ca078618b
commit d29b5c7262
3 changed files with 11 additions and 10 deletions

9
js/dist/forum.js vendored
View File

@@ -17541,6 +17541,8 @@ var ModalManager = /*#__PURE__*/function (_Component) {
this.remove();
});
_this2.showing = false;
_this2.clear();
}
});
this.onready();
@@ -17566,9 +17568,6 @@ var ModalManager = /*#__PURE__*/function (_Component) {
this.hideTimeout = setTimeout(function () {
return micromodal__WEBPACK_IMPORTED_MODULE_1__["default"].close('Modal');
});
this.modal = null;
this.component = null;
this.modalProps = {};
}
/**
* Clear content from the modal area.
@@ -17580,7 +17579,9 @@ var ModalManager = /*#__PURE__*/function (_Component) {
this.component.onhide();
}
this.component = null; // app.current.retain = false;
this.modal = null;
this.component = null;
this.modalProps = {}; // app.current.retain = false;
m.redraw();
}

File diff suppressed because one or more lines are too long