cjolif / dojo-todo-app

Dojo ToDo App
Other
28 stars 15 forks source link

configuration add view transition twice #78

Closed eric-wang closed 12 years ago

eric-wang commented 12 years ago

when first time click on "Edit" button on "configuration,configure" view, the "add" button on "configuration,edit" view will also triggered on iphone and Android. That's very strange because configuration,edit view not initial when click on "Edit" button. I tried: 1) undisplay "add" button on "configuration,edit" view and display it after "configuration,edit" view activate. This will solve the first time click on "add" button issue

2) click on "add" button to transition to "configuration,add" view then directly click "back" button, the transition success to "configuration,edit" view. click on "add" button and input something in the "title" textbox, this operation will cause listsmodel update, then click "back" button, the view transition to "items,list" view first and then transition to "confiuration,add" view again. That's very strange, I think maybe the reason is data module change update other views and cause a transition event.

eric-wang commented 12 years ago

see picture: https://github.com/eric-wang/Pictures/blob/master/1.JPG and https://github.com/eric-wang/Pictures/blob/master/2.JPG

eric-wang commented 12 years ago

This issue is caused by data model update reset the configuration,configure selected item, which by default transition to items,list view.

eric-wang commented 12 years ago

fixed in the above commit and close this issue.