Closed ZhangYiJiang closed 8 years ago
@ZhangYiJiang this was by design to allow multiple sessions to be created without re-opening the modal, what we really need is a way to either
clear all input fields (multiple session creation)
we can do this by adding multiple buttons at the bottom.
I've implemented both. The code is slightly messy though - I'm not entirely sure if passing the dialog object into the event handler is the best way to do this. You can take a look. https://github.com/ZhangYiJiang/jublia-agenda/commit/203a7fe68c1a2d43e9a3da302b83b5cbc26486ce
sorry my bad, didn't test it first. looks all good.
Done - also cleaned up the session creation code a bit, although that's still really messy