Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transectsModal not refreshing tableview when saving and closing #9

Closed
NickGulajec opened this issue Apr 20, 2014 · 2 comments
Closed

Comments

@NickGulajec
Copy link
Collaborator

The view behind the modal should refresh with the database changes on modal "save and close". A fireEvent/eventListener should do the trick. However...
At the moment an alert is set to trigger when this event fires. This alert will fire more than once on subsequent edits to a transect, when it should only always fire once.
Understanding and preventing this should make "tableView behind modal refresh automatically" possible.

@NickGulajec
Copy link
Collaborator Author

More detail: the alert only fires more than once when going back a screen and re-entering the transects screen. So it must be that when using the top-left button to go back to a previous screen, the current screen is not actually closed, but put in a suspended state. Navigating forward to that view again opens another copy of it. Seems prone to memory misuse.

@dryror
Copy link
Owner

dryror commented Apr 20, 2014

Moved the code that populated the tableView into a function. When closing the modal view, fired a global event that calls the populateTable function. This solved the issue with the table not updating.

@dryror dryror closed this as completed Apr 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants