? ? Pending

User tests: Successful: Unsuccessful:

avatar rjcf18
rjcf18
16 Apr 2017

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.

deepinscreenshot20170416134643

deepinscreenshot20170416134712

Actual result

Toolbar buttons batch and toolbar standard buttons with a confirm dialog and standard JS alert() on click.

deepinscreenshot20170416132255

deepinscreenshot20170416132354

Documentation Changes Required

None

avatar rjcf18 rjcf18 - open - 16 Apr 2017
avatar rjcf18 rjcf18 - change - 16 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2017
Category Layout Libraries
avatar rjcf18 rjcf18 - change - 16 Apr 2017
The description was changed
avatar rjcf18 rjcf18 - edited - 16 Apr 2017
avatar brianteeman
brianteeman - comment - 16 Apr 2017

Is it really correct to say "warning"

Warning Message

A 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 Message

An error message is information displayed when an unexpected condition occurs,

avatar rjcf18 rjcf18 - change - 16 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2017
Category Layout Libraries Layout Libraries Unit Tests
avatar rjcf18
rjcf18 - comment - 16 Apr 2017

Oh right you're correct. Then how should I proceed here?

avatar rjcf18
rjcf18 - comment - 16 Apr 2017

Should I replace the warning messages with error messages?

avatar wilsonge
wilsonge - comment - 16 Apr 2017

I think error makes more sense - shouldn't be hard to modify the existing PR to that :)

avatar rjcf18
rjcf18 - comment - 16 Apr 2017

Sure, I'll make that change ;)

avatar wilsonge
wilsonge - comment - 16 Apr 2017

Thankyou very much :)

avatar rjcf18 rjcf18 - change - 16 Apr 2017
Labels Added: ?
avatar wilsonge wilsonge - change - 16 Apr 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-16 15:03:17
Closed_By wilsonge
avatar wilsonge wilsonge - close - 16 Apr 2017
avatar wilsonge wilsonge - merge - 16 Apr 2017
avatar wilsonge
wilsonge - comment - 16 Apr 2017

Good work :) Merged

avatar rjcf18
rjcf18 - comment - 16 Apr 2017

Great! Thx! ;)

avatar rjcf18
rjcf18 - comment - 16 Apr 2017

Oh missed one WARNING there in the standard buttons part in the JText::script(); here: https://github.com/joomla/joomla-cms/blob/2158be7540985775c48f66878a511cebad18f088/libraries/cms/toolbar/button/standard.php#L119

avatar rjcf18
rjcf18 - comment - 16 Apr 2017

Should I do another PR to fix this? Sorry, totally missed it O.o

avatar wilsonge
wilsonge - comment - 16 Apr 2017

Don't worry :) Fixed it directly with 61c7673

avatar rjcf18
rjcf18 - comment - 16 Apr 2017

Ah ok thx ;) And thx to @NunoLopes69 for pointing out this improvement in the first place in his original PR :)

Add a Comment

Login with GitHub to post a comment