Refs #17721 EEA; added documentation for the publish dialog; fix the condition for the publish_dialog.js file