';
box_html += '
';
@@ -260,7 +260,7 @@
e.preventDefault();
console.log(x);
- $('.fields_wrapper').parent('div').remove();
+ $(this).parent('div').parent('div').parent('span').remove();
x--;
})
});
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index 7f1e798f33..3e197ce3cd 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -801,7 +801,7 @@
$.validate({
form : '#create-form',
- modules : 'date,toggleDisabled',
+ modules : 'date,toggleDisabled,security',
disabledFormFilter : '#create-form',
showErrorDialogs : true
});