firstcommit
This commit is contained in:
16
resources/js/backend/repeater.js
Normal file
16
resources/js/backend/repeater.js
Normal file
@@ -0,0 +1,16 @@
|
||||
$(document).ready(function() {
|
||||
if ($('.repeater').length > 0) {
|
||||
$('.repeater').repeater({
|
||||
show: function () {
|
||||
// This function is called when the "Add" button is clicked
|
||||
// You can add any additional logic here
|
||||
return $(this).slideDown();
|
||||
},
|
||||
});
|
||||
|
||||
// Disable form submission when clicking the "Add" button
|
||||
$('.repeater').on('click', '[data-repeater-create]', function () {
|
||||
return false;
|
||||
});
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user