11.2.0PRO: Shoutbox Edit & Delete only working with Debug System = ON

Hulst
Topic Author
Posts: 22
11 months 3 weeks ago #4620 by Hulst
Hello,

At this moment I use 11.2.0PRO in J5.4.0 (and J4.4.14), but the problem is also in older version.
When logged in as Super User, the Delete or Edit a shout is only working when in Global Configuration the Debug System = On.
With Debug System =Off the message in a debugger is:
Uncaught ReferenceError: shoutbox is not defined

I tried to solve, but with no succes.

Regards,
Peter

Please Log in or Create an account to join the conversation.

Hulst
Topic Author
Posts: 22
11 months 3 weeks ago #4621 by Hulst
Hello,

I think that I discovered the error.

In mod_shoutbox.js the first line is: const shoutbox = window.shoutbox || {};
Here "shoutbox" is defined.

However in mod_shoutbox.min.js, the first line is: const Q=window.shoutbox||{};
Here "shoutbox" is NOT defined, but renamed in "Q"

I have attached a better mod_shoutbox.min.js, generated with minify-js.com/
Here the name is remained and now it works.

Please Log in or Create an account to join the conversation.

Hulst
Topic Author
Posts: 22
11 months 3 weeks ago #4622 by Hulst
I mailed the attached file.

Please Log in or Create an account to join the conversation.

Lodder
Lodder's Avatar
Posts: 1264
11 months 3 weeks ago #4623 by Lodder
Hi Hulst,

Oops, this must be due to the nee JS minifier I switched to. I'll release an update tomorrow morning with a fix.

Regards,
Lodder

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum