Red Hat Bugzilla – Bug 828629
Loading and Searching indicators are shown when the relevant view is not visible
Last modified: 2012-11-07 01:18:23 EST
Description of problem:
When a document is being loaded and the document view is not visible, the loading indicator is still show. When a project-wide search is run and the search page is not visible, the searching indicator is still shown.
This is most likely to be observed when navigating using history.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Open translation editor for a project-iteration with multiple documents
2.Click one document to load it in the editor
3.Click "search and replace"
4.Enter a search phrase that is found in another document
5.Click "view in editor" for any document that is not loaded
6.Copy the URL to use in step 8
7.Use browser "back"
8.Paste the copied URL in a different browser tab or window and navigate to it
7. "Loading..." is shown over the search results
8. both "Searching.." and "Loading..." are shown (overlapping) over document view
7. "Loading..." not shown when document view is not visible
8. "Searching..." not shown when search view is not visible
Implement singleton on loading panel to avoid conflicting between editor and search replace.
However, there's possibility that "Loading..." will display in search replace view if browser's back is click while loading in editor.
Ignore last comment on the possibility of this error being occur when back button is clicked. Further testing show problem has been solved with implementation above.
Tested with Zanata version 1.8.0-SNAPSHOT (20121012-0031)
"Searching" is still appear if you paste the URL to other browser.
Implemented fix. Change of loading panel to be common between searching and loading since the process is necessary before any activities is taken.
VERIFIED with Zanata version 1.8.0-SNAPSHOT (20121018-0932)
Fix released in Zanata 2.0.