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

Start spinners before evaluating the input, so spinners are properly … #202

Merged
merged 1 commit into from Jan 15, 2016

Conversation

wmde-manicki
Copy link

…stopped when the input processing fails (due to invalid URL for instance).

Task: https://phabricator.wikimedia.org/T123709
Demo: https://tools.wmflabs.org/file-reuse-test/fix-no-error-msg-on-wrong-input/

I just noticed that when one enters non-Wikipedia and non-Commons URL (or simply some foobar contant) to the input field, the tool does not show an error message (you can see the error in the browser console when trying the input on the production instance for example).
Apparently, this got broken when adding the loading spinners. This change simply starts spinners no matter what the input was. That way spinner stopping function will always have a spinner to stop, and also spinner wouldn't start if the input was wrong (the latter would happen if I simply check for spinner's existence in the _stopLoading method).

…stopped when the input processing fails (due to invalid URL for instance).
WMDE-Fisch pushed a commit that referenced this pull request Jan 15, 2016
Start spinners before evaluating the input, so spinners are properly …
@WMDE-Fisch WMDE-Fisch merged commit 2dd354f into master Jan 15, 2016
@WMDE-Fisch WMDE-Fisch deleted the fix-no-error-msg-on-wrong-input branch January 15, 2016 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants