Open a Page with a Modal Already open

Send Snippet To: Save this snippet to Code Collector Pro -- view all balzan's snippets
language: Objective-C
license: Other

Code for Snippet:

                
// Put this at the bottom of the html page
 
<script>
    $(document).ready(function() {
        if (window.location.href.indexOf('#createEditInvoice') != -1) {
            $('#createEditInvoice').modal('show');
        }
        if (window.location.href.indexOf('#createEditForecast') != -1) {
            $('#createEditForecast').modal('show');
        }
    });
 
</script>
 
// change these accordingly #createEditInvoice
 
// your link to the page with the open modal is 
// http://sandbox.rawideas.local/abalzan/ri_zink_ss/pages/invoice#createEditInvoice
 
comments powered by Disqus

Info

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 389
Date Added: 2016-09-27 05:11:28
Last Modified: 2016-11-15 19:25:46

Web Analytics