You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
914 B
30 lines
914 B
/*=========================================================================================
|
|
File Name: form-repeater.js
|
|
Description: Repeat forms or form fields
|
|
----------------------------------------------------------------------------------------
|
|
Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template
|
|
Version: 1.0
|
|
Author: PIXINVENT
|
|
Author URL: http://www.themeforest.net/user/pixinvent
|
|
==========================================================================================*/
|
|
|
|
(function(window, document, $) {
|
|
'use strict';
|
|
|
|
// Default
|
|
$('.repeater-default').repeater();
|
|
|
|
// Custom Show / Hide Configurations
|
|
$('.file-repeater, .contact-repeater').repeater({
|
|
show: function () {
|
|
$(this).slideDown();
|
|
},
|
|
hide: function(remove) {
|
|
if (confirm('Are you sure you want to remove this item?')) {
|
|
$(this).slideUp(remove);
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
})(window, document, jQuery); |