Merge pull request #790 from ultimatemember/fix/permanently_delete_fields

Permanently deleting form's field (issue #786)
This commit is contained in:
Nikita Sinelnikov
2021-04-05 13:20:55 +03:00
committed by GitHub
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ jQuery(document).ready(function() {
jQuery(document.body).on('click', '.um-admin-btns a span.remove', function(e){
e.preventDefault();
if ( confirm( 'This will permanently delete this custom field from database' ) ) {
if ( confirm( 'This will permanently delete this custom field from a database and from all forms on your site. Are you sure?' ) ) {
jQuery(this).parents('a').remove();
@@ -21,7 +21,7 @@ jQuery(document).ready(function() {
},
success: function(data){
jQuery('#um-admin-form-builder .' + arg1).remove();
},
error: function(data){