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

Make jQuery routines into functions and eliminate unhandled exception #348 #349

Merged
merged 1 commit into from
Mar 20, 2018

Conversation

Jaifroid
Copy link
Member

I've organized all the jQuery routines into functions. I thought it best to leave these functions within the scope of displayArticleInForm, not because it's necessary, but because it's neater, I think. Let me know if you would prefer them to be in global scope. I've tested on FFOS and the functions work fine in this scope.

I've disabled the loadJavaScriptJQuery function to prevent overhead until it is worked on. However, I've fixed the line that was causing an unhandled exception as per #348.

Tested and working in: Firefox ERS, FFOS, Edge and Internet Explorer. Please test in Chrome if you can.

@Jaifroid Jaifroid added the bug label Mar 20, 2018
@Jaifroid Jaifroid self-assigned this Mar 20, 2018
@Jaifroid Jaifroid requested a review from mossroy March 20, 2018 09:05
Copy link
Contributor

@mossroy mossroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.
I tested on Chrome 65 : it works too (but not with file:// : that's a different issue that I will create)

@Jaifroid Jaifroid merged commit 6bf87b2 into master Mar 20, 2018
@Jaifroid Jaifroid deleted the Eliminate-unhandled-exception-in-JavaScript-code branch March 20, 2018 12:26
@mossroy
Copy link
Contributor

mossroy commented Mar 20, 2018

In fact, the issue with Chrome on file:// was already open : #286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants