/*========================================================================================= File Name: form-repeater.js Description: Repeat forms or form fields ---------------------------------------------------------------------------------------- Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template Author: PIXINVENT Author URL: http://www.themeforest.net/user/pixinvent ==========================================================================================*/ (function(window, document, $) { 'use strict'; // Default $('.repeater-default').repeater(); // Custom Show / Hide Configurations $('.lat-repeater').repeater({ show: function () { $(this).slideDown(); }, hide: function(remove) { if (confirm('Are you sure you want to remove this item?')) { $(this).slideUp(remove); } }, isFirstItemUndeletable: true, defaultValues: { 'core': 'dual' }, }); $('.cc-repeater').repeater({ show: function () { $(this).slideDown(); }, hide: function(remove) { if (confirm('Are you sure you want to remove this item?')) { $(this).slideUp(remove); } }, isFirstItemUndeletable: true, }); $('.x-cc-repeater').repeater({ show: function () { $(this).slideDown(); }, hide: function(remove) { if (confirm('Are you sure you want to remove this item?')) { $(this).slideUp(remove); } }, isFirstItemUndeletable: true, }); })(window, document, jQuery);