Fixes #82310 by adding a Ext.Msg.wait dialog before the submit is done a...

...nd hiding it when the callback or fallback is called after the server answers.

Also, code improvements have been applied based on JSHint suggestions.