Vitaliy-1 / oldGregg

Theme for OJS 3 with Bootstrap 4
https://uk.e-medjournal.com/index.php/psp
GNU General Public License v3.0
31 stars 35 forks source link

When we click on the image to see it, the table of contents/sidebar affixed disappears #114

Open varshilmehta opened 5 years ago

varshilmehta commented 5 years ago

When we click on the image to see it, the table of contents/sidebar affixed on the right side disappears

Vitaliy-1 commented 5 years ago

Hmm, I can't reproduce it on the demo instance. Are there any errors in the browser console?

varshilmehta commented 5 years ago

Hmm, I can't reproduce it on the demo instance. Are there any errors in the browser console?

Here are the errors:

```

css:1 Failed to load resource: the server responded with a status of 500 () default:240 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu rss.png:1 Failed to load resource: the server responded with a status of 404 () rg.png:1 Failed to load resource: the server responded with a status of 404 () /files/orcid.png:1 Failed to load resource: the server responded with a status of 404 () /files/oa.png:1 Failed to load resource: the server responded with a status of 404 () loader.js:286 Google Charts loader.js should only be loaded once. 8 e000086:1412 Uncaught TypeError: Cannot read property 'style' of null at scrollFunction (e000086:1412) at window.onscroll (e000086:1409) core.ac.uk/recommender/recommend:1 Failed to load resource: the server responded with a status of 400 (Bad Request) 42 e000086:1412 Uncaught TypeError: Cannot read property 'style' of null at scrollFunction (e000086:1412) at window.onscroll (e000086:1409) css:1 Failed to load resource: the server responded with a status of 500 ()

varshilmehta commented 5 years ago

For eg https://jmrionline.com/upgrade/jmri/article/view/180

varshilmehta commented 5 years ago

I did the fresh install (OJS 3.1.2.1), but the same problem persist.

Vitaliy-1 commented 5 years ago

Looks like a conflict between JS libraries but I'm not sure what it is. Maybe Bootstrap or JQuery interacts with something that the page is using alongside with them.

varshilmehta commented 5 years ago

Hmm, so any solution for that? Could you try on OJS 3.1.2.1 yourself and see?

Vitaliy-1 commented 5 years ago

It may be a problem with a new Bootstrap and I don't see any relevant errors in the console. Somehow affix fails when modal is activated. I'll take a look. This issue comes from JATS Parser, as it renders that part of the code.