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
[5.1] B/C (?) Modal issue for plugins #43289
Comments
Modal editing for Plugin and Module were updated to use Dialog.
In theory they still should work. Maybe something missing need to look. upd, I see, the buttons got a new id. |
Later I will make PR to fix the old buttons, however new buttons will stay visible that how it is. |
Thanks @Fedik , next to that, when using these new buttons on top, e.g. close then the modal doesn't close but shows a full sized (modal) message with a check mark that the plugin was saved. The actual closing of the modal is then only possible via clicking outside the modal. When point the bottom buttons to the in this case close button on de top, the the modal closes without the big message. So there are actually different things different between 5.0 and 5.1 |
Bootstrap modal does not have a litle X? to close |
I clicked close, or save and close and then that is what I get: it should do what the button says: close or save and close, not show this screen and then require additional X click (or in my case because no X, click outside the modal) |
understand, but then the visible buttons were they where not visible in J 5.0.3 (and lower) is a B/C
|
Old approach was a bit too hacky. |
... and this is why there are beta and rc releases |
agree about the 'hacky' part: way better like it is now, lacks some flexibility like adding own buttons (like I added the toggle inline help button), but is something that can be hacked in there in another way :) But still: the new buttons on top are not 'usable' as they 'produce' the confirmation screen on close and save & close |
indeed |
Please test #43291 |
@Fedik For me nothing is closed yet, so just keep posting findings here: This buttons is missing in the plugin dialog: only save, save&close and close are there.
How to I add a footer to the (plugin iframe) dialog? Documentation is not giving any insights in this? Is this possible? |
Steps to reproduce the issue
In my extensions I have a control panel where I offer shortcuts to certain plugins: these shortcuts open the plugin in a modal that is rendered with HTMLHelper::_('bootstrap.renderModal'...
This works perfect in Joomla 3.x / 4.x and 5.0 until I installed Joomla 5.1 and then the following two issues (for which I cannot find any information) occurred:
As a workaround I have created a JS function to hide the (1) buttons on event 'shown.bs.modal' and for issue (2) I have created a 'if J5.1 then / else' logic to get the correct button identifiers in there: this because still a lot of my users are on Joomla4 and I cannot have multiple versions for Joomla 5.0 / Joomla 5.1 and for Joomla 4.4
This changed behavior should IMO be described somewhere (here? https://manual.joomla.org/migrations/50-51/)
below the JS code I use for hiding the buttons in the loaded iframe, hope it saves somebody some time:
Expected result
the button (1) should be hidden as they where hidden in Joomla 5.0.3 and lower
The text was updated successfully, but these errors were encountered: