Unverified Commit 678371e5 authored by ufo911's avatar ufo911 Committed by GitHub

Change form js to understand if onclick is fired

parent 7fa26ab2
...@@ -604,9 +604,11 @@ ...@@ -604,9 +604,11 @@
// Add on event handler // Add on event handler
$('body').on('click', '.inline-remove-field' , function(e) { $('body').on('click', '.inline-remove-field' , function(e) {
e.preventDefault(); e.preventDefault();
var r = confirm('Are you sure you want to delete this record?');
var form = $(this).closest('.inline-field'); var form = $(this).closest('.inline-field');
if (r == true){
form.remove(); form.remove();
}
}); });
// Expose faForm globally // Expose faForm globally
......
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