Open fritzmg opened 5 days ago
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.
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:https://github.com/codefog/contao-haste/blob/e0dfd9904937a76f28fe883acc7b36e2317004b5/assets/dca-ajax-operations.js#L19
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>
?