MyBB Community Forums

Full Version: Question about modals
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the difference between the modal and global_no_permission_modal?
If you are talking about the templates,

Every responses that are presented in a modal has their own specific template. They are special and bound to a specific action. global_no_permission_modal template is one of those. There are many other specific modal templates, like global_board_offline_modal, header_welcomeblock_guest_login_modal, moderation_getip_modal etc, generally used for a modal representation against an AJAX call.

Any other generic modal representation like any action confirmation modal (ex. deleting a post) uses the common modal template called modal. This template isn't used for AJAX calls in general and not involved with any server-side process. This template is a common one and supplied with every page load to be used by front-end javascript library function (MyBB.prompt( )) instantly.
Thank you that helps a lot.