Question: Lock The Modal Pop-Ups

Lock The Modal Pop-Ups

I want to lock the modal pop-ups so they do not close when clicking outside of them. Please provide me with precise instructions to achieve this urgently.

B

Binoche

Asked

I want to lock the modal pop-ups so they do not close when clicking outside of them. Please provide me with precise instructions to achieve this urgently.

  • EG

    Enyinnaya Gift

    Answered

    Hi @Binoche

    You will need to add data-backdrop="static" to the modal div tag to prevent the modal from closing when clicking outside of it.

    You can replace lines 16 and 17 in the themes\default\admin\views\footer.php file with:

    <div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" aria-hidden="true"></div>
    <div class="modal fade in" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2" data-backdrop="static" aria-hidden="true"></div>
    

    This will lock the modal so that it does not close when clicking outside of it.


    My name is @Enyinnaya Gift . I am an Independent Software Developer with in-depth knowledge of the SMA system. I have done a lot of customizations for many happy clients across the globe. One of my recent projects is a WooCommerce eCommerce/Web Shop Integration to seamlessly synchronize your inventory with WooCommerce. This integration allows you to manage products, stocks, and orders directly from your SMA software, eliminating the need to update multiple systems and enabling you to launch an online shop within minutes.

    You can check out highlights and a demo of my latest customization by Clicking HERE - Highlights

    You can also reach me via any of the following mediums for a real-time discussion on your customization request:

    • Skype ID: enyinnayag
    • WeChat ID: genyinnaya
    • Email: [email protected]
    • WhatsApp: +2348068355192
  • Login to Reply