Non ajax course

Please add this code in your wp-content/plugins/wplms-customizer/wplms-customizer.php file  :
Note : Enable the previous unit lock to make this tip work.

add_action('wp_footer','load_js_unit_traverse');
function load_js_unit_traverse(){
    ?>
    <script>
    jQuery(document).ready(function($){
        $('.unit_content').on('unit_traverse',function(){
            $('.unit_content').init();
         $('body').find('.course_progressbar').on('increment',function(){
           
            location.reload();
         });
           
        });
   
    $('.course_lesson').on('click',function(){
        $('.ajax-popup-link').trigger('click');
    });
});
    </script>
    <?php
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *