-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Missed few mootools modals on com_menus boostrapization #6804
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
Missed few mootools modals on com_menus boostrapization #6804
Conversation
and disabled conflict with validation
|
@test works fine for me, thanks! This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6804. |
|
@test: Thanks a lot. I confirm that the client side validation of the menu item type is working fine now. During the test I noticed
I don' t know exactly , if the modal in administrator/components/com_categories/models/fields/modal/category.php should also be mentioned here because it seems not to be selectable as menu item type. |
|
@Erftralle Thanks I posted some changes: |
|
@roland-d One consideration about #4661 that arose from @Erftralle findings:
I guess option 3 is the only way, but it will make the code a little bit more complicated that’s why I wrote this note before I head to make any changes. |
Improve client side validation. Code by @Erftralle. Thanks
Your third option has my preference as accepting the glitch is not even an option since it can be fixed. Using another class might be more work than it's worth. Could you give me perhaps a clearer example of the problem. I am not entirely sure where the issue is. Thanks. |
|
@roland-d Try to follow the directions in this comment #4661 (comment)
Reposted the comment as github seems to get confused… |
… elements as well
|
UPDATES: How to test:Check all the combos of available menu types and the sequential modal that work correctly. Also check that required fields when not filled (selected) throw an understandable error (that shows which field is failing). The end result should be: |
|
Thanks! Much better! I also like that footer :) @test the error for empty required field looks good to me. Bug when opening modal for editing a module
Animation missing I'm using the latest version of Google Chrome |
|
@n9iels thanks! About the missing animation, you are right! That’s because when you select a menuitem e.g. single contact the procedure is to reload the form (page), but maybe we can do something there as well, I will try it out later on today... |
|
@DGT41 oops, I see the mistake. I didn't wait until the page reload after click on the close button. I was a little bit too fast 😄 |
- close modal on menu type selection - check out properly from module form if cancel/ close modal!
|
@n9iels You were right, that missing animation actually was a forgotten mootools modal close function! It’s fine now. |
|
@test works fine for me now, thanks! This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6804. |
|
When I apply this PR and test it, I get this error in the console:
Why would you want to remove the _id for the ID field?
I think it is pretty nice, so you know that ID belongs to that name field. As for it being a B/C issue, I do think it is, anyone using the select article in their own extension will be missing the id field as it is now. |
|
@roland-d Thanks I just corrected that console error. |
|
@DGT41: It is a pity that you reverted the validation code.
The validation does not work properly for these modal form fields. In case of a validation error you just see the word Error in the system message container (without any hint to the regarding field) and the corresponding label is not coloured red. The red colour is also not removed after a selection has done. See my posting above and also #6654 and #6761 for more details.
Could you explain more detailed why do you think that could be a problem. |
|
I would move the validation issue to the separate pull ... |
|
@Erftralle I am not against correcting the validation but already this PR needs too much testing. Adding here the code for validation as well makes things even harder to get some tests. Lets get this one merged (this PR still needs 2 successful tests) and then open another PR for validation with the code already in hand or an improved version. I will definitely support it, test it etc… Small chunks of code are always easier to get tested and merged than a complicated PR that solve too many bugs |
|
Agree that it is best to move the validation issue to another PR as each PR ideally should deal with a single problem. This makes isolated testing possible and easier.
I have taken a closer look and the original problem I foresaw is not an issue I think. However I still think it will be good to keep the _id field as it matches the _name field. Having the _id should not be an issue when fixing the validation issue I think. @test All good, both Hathor and Isis the select button remains visible after applying the patch. |
|
See #6885 for an alternative suggestion to improve client side validation. |







This is complimentary to #4661
Module Assignmentand then canceling the changes will result in a lock icon appearing in module managertesting
singe articlethen click on select button on the next fieldSelect Articlerespectively you should see a bootstrap modal:Repeat this also for
single contactsingle newsfeedwith a selection onSelect ContactSelect Newsfeedrespectively.Preview