Modal com_categories: improve Select & Edit Category#10441
Modal com_categories: improve Select & Edit Category#10441rdeutz merged 6 commits intojoomla:stagingfrom
Conversation
|
in the modal, got a JS error BTW did you notice the lack of modal in the "Edit" button (the button appears after saving the category with the association)? |
|
ups, the js error is already there without your PR ..., so tested with success |
|
I have tested this item ✅ successfully on d738268 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441. |
|
@andrepereiradasilva yes error was there before, but prepare yourself for a new test, as i will fix it (this PR is a good occasion to fix issue!) ;-) |
|
This PR has received new commits. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441. |
|
This PR has received new commits. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441. |
|
This PR has received new commits. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441. |
|
@andrepereiradasilva JS error is now fixed here : 96e2bb0 But, i will put this PR in stand-by until tomorrow, as i will see to add directly in this PR, the modal to edit category and do a 2-in-1 PR for modals select and edit category ;-) |
|
ok will wait then. |
|
This PR has received new commits. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441. |
|
@andrepereiradasilva That's ok!
Ready for testing! (and to be then the base for other ones, if all is ok!) 👍 |
| } | ||
|
|
||
| $urlSelect = $linkCategories . '&' . JSession::getFormToken() . '=1'; | ||
| $urlEdit = $linkCategory . '&id=' . $value . '&' . JSession::getFormToken() . '=1'; |
There was a problem hiding this comment.
shouldn't all internal URL be passed trough JRoute::_()?
There was a problem hiding this comment.
The urls there are the source url (remote) for the iframe inside the modal (set here : https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/modal/iframe.php#L46).
So, as inside the modal-body iframe of the modal, should not be needed, and not sure in fact that is should be used... (none of all bootstrap modals iframe use JRoute ;-) )
There was a problem hiding this comment.
humm ... ok then i guess is not needed here
There was a problem hiding this comment.
Indeed, this is a good question... and wonder who can answer ? :-|
|
I have tested this item ✅ successfully on 443897d Solves a lot of issues with the "Edit" modal, js errors and the "Clear" button. Also now the "Edit" is a modal with "Close", "Save" and "Save & Close" buttons! 👍 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441. |
|
@JoomliC really nice work! The modals are getting much more user friendly. I hope all modals get reviewed for 3.6.0. |
|
Thank you @andrepereiradasilva ! |
|
I have tested this item ✅ successfully on 443897d This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10441. |
|
@andrepereiradasilva @BurtNL Thanks for testing! |
Improve modals to select and to edit a category.
Note: to be testing on staging.
Summary of Changes
3.6.0-dev)Uncaught SyntaxError: Unexpected token )in select category modalTesting Instructions (Staging + Multilanguages enabled!)
Associationstab to select associated category to open the modal.Select Category Before Patch

Select Category After Patch

Edit Category Before Patch

Open in a new window...
Edit Category After Patch

Open in a modal