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
[4.0] Replaced remaining js alerts for joomla alerts for the toolbar buttons #15330
Conversation
Is it really correct to say "warning" Warning MessageA warning message is information displayed warning the user about risks associated with the use of the item and may include a requirement to confirm before proceeding Error MessageAn error message is information displayed when an unexpected condition occurs, |
Oh right you're correct. Then how should I proceed here? |
Should I replace the warning messages with error messages? |
I think error makes more sense - shouldn't be hard to modify the existing PR to that :) |
Sure, I'll make that change ;) |
Thankyou very much :) |
Good work :) Merged |
Great! Thx! ;) |
Oh missed the WARNING there in the message title in the standard buttons part in the JText::script(); here:
|
Should I do another PR to fix this? Sorry, totally missed that one O.o |
Don't worry :) Fixed it directly with 61c7673 |
Ah ok thx ;) And thx to @NunoLopes96 for pointing out this improvement in the first place in his original PR :) |
Summary of Changes
As a followup to the Pull Request #15315 , besides the standard buttons I've noticed there were still buttons in the toolbar with the standard JS alert() on click when no item is selected, the batch button and the delete button, for instance, in Users. I've replaced the JS alert with the Joomla alert for those remaining buttons, I believe all buttons in the toolbar now have the Joomla alert on click when no item is selected.
Testing Instructions
Go to Banners and press Batch with no items selected and go to Users and press Delete with no items selected. In both cases you should see the Joomla alert instead of the JS alert().
Expected result
Toolbar buttons batch and toolbar standard buttons with a confirm dialog and Joomla alert on click.
Actual result
Toolbar buttons batch and toolbar standard buttons with a confirm dialog and standard JS alert() on click.
Documentation Changes Required
None