-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
haste_ajax_operation
does not work in Contao 5 due to new dark theme
#227
Comments
Yeah… it would be best if you can use the Contao core features as described in the manual. Or is there a reason you can't do so? |
These are only available in Contao 5 (I think?). The extension in question still has Contao 4.13 compatibility. |
@fritzmg it is also available in Contao 4.13 (see contao/contao#3889). It is still a bug though in Haste :/ |
As a fix this feature within Haste could be removed and changed so that a Otherwise I'd say it's probably not worth fixing. |
I think Haste supports more features and more complex handling. But I personally never had a use case for anything more than toggles, so I'm not planning on investing time on this fix 😅 |
In Contao 5 the dark theme was introduced. With this change the HTML structure of the toggle operation looks like this:
i.e. there are now two
<img>
.dca-ajax-operations.js
however only applies the change to the first one:contao-haste/assets/dca-ajax-operations.js
Line 19 in e0dfd99
and only also only for the default (light) theme (so the action itself does work - just the icon is not replaced correctly).
Not sure what the best way to fix this is. Should the server return an additional
nextIconDark
which the JavaScript would then apply to the correct<img>
?The text was updated successfully, but these errors were encountered: