framework/js
Alexander Skvortsov 5b157f0adb
Fix opening modals from other modals. (#2263)
While seemingly correct, an onremove method in Modal that triggers animateHide is problematic, because if one modal is opened from another, the one currently open will be removed from the DOM, triggering animateHide, and closing the new modal.

To compensate, an onupdate method now closes a modal if one is open but shouldn't be; this supports the functionality of the old method when the modal is closed not from the modal instance itself (e.g. app.modal.close())

This is not ideal, but necessary. We should consider eventually expanding the modal system to support showing multiple modals at the same time (stacked over each other). Then, we can move this back to individual modals.
2020-09-23 23:12:22 -04:00
..
dist Bundled output for commit 6e9db779cd [skip ci] 2020-09-24 03:06:06 +00:00
src Fix opening modals from other modals. (#2263) 2020-09-23 23:12:22 -04:00
.prettierrc.json Configure prettier via JSON file 2020-04-17 10:44:36 +02:00
admin.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
forum.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
package-lock.json Mithril 2 update (#2255) 2020-09-23 22:40:37 -04:00
package.json Mithril 2 update (#2255) 2020-09-23 22:40:37 -04:00
shims.d.ts Mithril 2 update (#2255) 2020-09-23 22:40:37 -04:00
tsconfig.json Mithril 2 update (#2255) 2020-09-23 22:40:37 -04:00
webpack.config.js Initial TypeScript infrastructure (#2206) 2020-07-03 14:47:44 +02:00