kobotoolbox / enketo-express

We've moved! Please use the new repository 🠊 https://github.com/enketo/enketo-express
Apache License 2.0
102 stars 90 forks source link

add replacable dialogs in Enketo Core #935

Closed MartijnR closed 6 years ago

MartijnR commented 6 years ago

Everywhere where confirm() and alert() is used, create a way to override this in the app (enketo express)

MartijnR commented 6 years ago

Need to update gui.alert in EE because it is not consistent with confirm and prompt

MartijnR commented 6 years ago

...and realize that window.alert and window.confirm are blocking, so this is not as easy as thought..

Also gui.confirm doesn't even return a promise, so works quite differently than window.confirm though we could abstract that away.