HugoHasenbein / redmine_more_previews

Redmine plugin to preview various file types in redmine's preview pane
https://www.redmine.org/plugins/redmine_more_previews
GNU General Public License v2.0
46 stars 15 forks source link

iframe "Loading" bar stays forever #93

Open Boy132 opened 11 months ago

Boy132 commented 11 months ago

When using iframe the "Loading" bar stays forever. grafik

Tested with peek pdf and Cliff eml.

With object embed it works correctly.

In the browser console there is this error: `Uncaught TypeError: e.indexOf is not a function load jQuery

https://myredmine.com/attachments/611/Übersicht Report-497.pdf:162 jQuery 2 ` Using Redmine 5.0.4 and Ruby 2.7.4 (with Rails 6.1.7)
HugoHasenbein commented 11 months ago

I'm aware of this problem, which arises from different philosophies with respect to javascript' access to iframe / embedded content. This is why this option is available. Currently, I am extremely tied up with work. In December or sop I might release a newer version taking care of a few issues raised

Am 19.10.2023 um 12:05 schrieb Boy132 @.***>:

When using iframe the "Loading" bar stays forever. https://user-images.githubusercontent.com/8203120/276570889-468ef2e3-caf7-4f3c-89d3-cf97308283f0.png Tested with peek pdf and Cliff eml.

With object embed it works correctly.

In the browser console there is this error: Uncaught TypeError: e.indexOf is not a function load jQuery https://myredmine.com/attachments/611/Übersicht Report-497.pdf:162 jQuery 2

— Reply to this email directly, view it on GitHub https://github.com/HugoHasenbein/redmine_more_previews/issues/93, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRDRAW5AJEXONYHDSMGWLYAD3OFAVCNFSM6AAAAAA6G5PHLGVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2TCNZYHAZDMMA. You are receiving this because you are subscribed to this thread.

sss2sssss commented 6 months ago

I found where it's come from, and also provide with a fix to it, you can refer to this PR: https://github.com/HugoHasenbein/redmine_more_previews/pull/96