a. Go to WP Admin -> Plugins -> Editor -> WPLMS Customizer -> customizer_class.php
b. Locate the function _construct and add following code in it :
PHP Code:
add_action('wp_footer',array($this,'add_unit_auto_complete'));
c. Add following function in class:
PHP Code:
function add_unit_auto_complete(){ echo "<script> jQuery(document).ready(function($){ $('#mark-complete').on('media_complete',function(){ $('#mark-complete').trigger('click'); }); }); </script>"; }
Note: You need to enable Unit Media lock for this and this would only work for self hosted videos.