Add two missing language strings to the js file and modified the alert code by removing the old parts. (This fixed the undefined)
Add btn-small class so the Button doesn't look oversized as compared to the text
The 4.0 language string for the message uses %s to map the Count of Messages and hence I added the entire text inside the countSpan to ensure that it stays together and so that the use of innerHTML is avoided. In the previous language string, there was no %s so that justifies why the initial code could have the count and string in separate HTML tags.
I have tested this item✅ successfully on 56676fb
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33735.