Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_custom_js_to_footer() {
- ?>
- <script type="text/javascript">
- jQuery(document).ready(function($){
- document.addEventListener('dndmfu_completed', function(event){
- var totalFile = event.detail.total;
- if( totalFile > 0 ){
- jQuery('input[name="quantity"]').val( totalFile );
- }
- });
- });
- </script>
- <?php
- }
- add_action('wp_footer', 'add_custom_js_to_footer');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement