Created
April 6, 2016 12:11
-
-
Save mwangepatrick/5677cc88aa78881c55574e21c760b681 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('acf/input/admin_head', 'my_acf_admin_head'); | |
function my_acf_admin_head() { | |
?> | |
<script type="text/javascript"> | |
(function($) { | |
acf.add_action('ready', function(){ | |
$('body').on('click', '.acf-repeater-remove-row', function( e ){ | |
return confirm("Delete row?"); | |
}); | |
}); | |
})(jQuery); | |
</script> | |
<?php | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment