Simple Spoiler BBCode

Spoiler requires a refresh/reload before toggling - Simple Spoiler BBCode

Spoiler requires a refresh/reload before toggling

by Jogurt the Yogurt » Wed Aug 23, 2017 2:54 am

Hey, first of all, this is a lovely addition! All of the old spoiler bbcodes that I've found out there have been hackjobs compared to this nice smooth tag, so thanks for that!

I don't know if you'll be able to service this issue since it appears to be specific to the mChat extension. When I post a spoiler in the chat, everything looks fine, but the "show" button doesn't toggle the spoiler on unless you refresh/reload the page first. After reloading, the toggling works perfectly.

If you then post another spoiler, you have to reload again to be able to toggle that one.
Jogurt the Yogurt
Registered User
Posts: 3
Joined: Wed Aug 23, 2017 2:44 am
Contact:

Re: Spoiler requires a refresh/reload before toggling

by AbaddonOrmuz » Thu Aug 24, 2017 4:14 pm

It's a normal but not intended error, as it wasn't made with dynamic item creating in mind.

I'll look into it.
Some of my phpBB extensions:
Image Imgur | :chart_with_upwards_trend: SEO Metadata | Image Markdown | :lock: Auto-lock Topics
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user :penguin:
User avatar
AbaddonOrmuz
Recognised Extension Developer
Posts: 1002
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Spoiler requires a refresh/reload before toggling

by AbaddonOrmuz » Sat Aug 26, 2017 2:53 am

Hi,

Sorry for the late reply, I've been dealing with some personal stuff.

Please try this new version: v1.1.0-RC1

Note that you must do a fresh install of this extension (disable the previous version and delete its data), I've done some small changes in the CSS too.

It must also work if spoilers are dynamically generated, using a chat in your case.
Some of my phpBB extensions:
Image Imgur | :chart_with_upwards_trend: SEO Metadata | Image Markdown | :lock: Auto-lock Topics
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user :penguin:
User avatar
AbaddonOrmuz
Recognised Extension Developer
Posts: 1002
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Spoiler requires a refresh/reload before toggling

by Jogurt the Yogurt » Tue Aug 29, 2017 3:22 am

Working like a charm now! Thanks for the attention!
Jogurt the Yogurt
Registered User
Posts: 3
Joined: Wed Aug 23, 2017 2:44 am
Contact: