leaguevine / leaguevine-ultistats

MIT License
18 stars 4 forks source link

Need a graphic to indicate data are being synced #10

Closed cboulay closed 12 years ago

cboulay commented 12 years ago

There needs to be a graphic somewhere indicating when data are being synced with the server. This shouldn't be addressed until after the local storage db is set, but I wanted to open the issue now because I found a neat site that might be useful for this issue and wanted to share.

mliu7 commented 12 years ago

I found a nice hint for this here and implemented a system-wide spinner:

http://stackoverflow.com/questions/5832295/backbone-js-how-and-when-to-show-a-spinner

If a spinner that responds to any ajax requests regardless of module is what you were looking for, feel free to mark this as closed.

mliu7 commented 12 years ago

This spinner broke after merging the relational branch. I'm not sure what's going on but the jQuery methods ajaxStart() ajaxStop() are never being triggered anymore.

cboulay commented 12 years ago

I fixed it by moving the script into a plugin. This has the significant advantage of not loading jquery twice. I don't want to commit from this computer because it'll change all the EOLs, so I will do it later.

cboulay commented 12 years ago

Eventually we may want to move the loader element from index.html into specific layouts. We don't want the loader on ALL screens. We don't want the loader to pop-up every time we press a pass button.

mliu7 commented 12 years ago

Sounds good, thanks.