Unverified Commit 4685cf20 authored by ufo911's avatar ufo911 Committed by GitHub

better js to confirm inline-remove-field

parent 678371e5
......@@ -604,9 +604,9 @@
// Add on event handler
$('body').on('click', '.inline-remove-field' , function(e) {
e.preventDefault();
var r = confirm('Are you sure you want to delete this record?');
var r = confirm($('.inline-remove-field').attr('value'));
var form = $(this).closest('.inline-field');
if (r == true){
if ( r == true ){
form.remove();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment