-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Converts jQuery statements to native JS and regularize quotation marks #927
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much @dheerajdlalwani. This is looking very good. Just some small comments/queries, and some suggestions to make parts more concise. I haven't tested yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, nearly there pending some minor changes suggested below. I'll do some manual testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, many thanks! I'll let you know when I've been able to complete tests. Were you able to test in IE11, for example scrolling to top with and without a ZIM archive loaded?
I was able to test this in IE 11 with the Zim archive loaded. |
OK, thanks! I meant just to test if the scroll to top button (on bottom bar) doesn't produce an exception in console if there is no archive loaded. |
Yup, I understood what you meant. And no, it does not give an exception. I checked and tested. |
In IE11, articles appear to load, but then don't display correctly. It works fine in Edge Chromium. Can you reproduce? |
Same problem when running the app in IE Mode in Edge Chromium. |
It's something to do with the slide transitions. If you turn the transitions off in Configuration, you can see that the page loads in IE11 and then slides away. A transition is being applied incorrectly it seems. Can you debug? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please debug display of articles in IE11, looking carefully at the slide transition code in uiutil.js. Test it with the transitions turned on and also with them turned off. 😎
Oooh yes, I shall get on to it. This seems interesting! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great that you found a solution! Just one last minor suggestion to make the code more concise.
I confirm it now works in IE11. 🙂 |
There seem to be some problems in the Firefox OS simulator. I'll try to debug these. It's not really evident what this is, but the app appears unresponsive even though no exceptions are being thrown. |
@dheerajdlalwani It turns out that Firefox OS does not recognize the word Although Firefox OS is now deprecated, we still try to keep support "if it's not too complicated". I've tested replacing Would you prefer to make this change this yourself, or would you like me to make a commit to your PR? It's completely up to you. NB you still have to check one-by-one that you aren't changing In the future, we hope to implement #554 and Babel, and then it will be possible to write modern code and compile for earlier browsers. |
Oh, I didn't know this. I shall fix this right away. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now working in the Firefox OS simulator. Many thanks.
@dheerajdlalwani Let me know when you're happy for this to be squashed/merged. |
This looks good to me! Go ahead and squash and merge it. |
Should potentially fix #920
I have converted as many jQuery functions as I could to native JS.