Lock The Modal Pop-Ups

0

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.

Question Resolved For: Stock Manager Advance with Point of Sale Module 0 Votes 1 Answers 132 Views
Asked by Binoche 3 months ago

0

Answered by Enyinnaya Gift 3 months ago

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

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.