30 lines
944 B
JavaScript
30 lines
944 B
JavaScript
/*=========================================================================================
|
|
File Name: form-repeater.js
|
|
Description: form repeater page specific js
|
|
----------------------------------------------------------------------------------------
|
|
Item Name: Vuexy HTML Admin Template
|
|
Version: 1.0
|
|
Author: PIXINVENT
|
|
Author URL: http://www.themeforest.net/user/pixinvent
|
|
==========================================================================================*/
|
|
|
|
$(function () {
|
|
'use strict';
|
|
|
|
// form repeater jquery
|
|
$('.invoice-repeater, .repeater-default').repeater({
|
|
show: function () {
|
|
$(this).slideDown();
|
|
// Feather Icons
|
|
if (feather) {
|
|
feather.replace({ width: 14, height: 14 });
|
|
}
|
|
},
|
|
hide: function (deleteElement) {
|
|
if (confirm('Are you sure you want to delete this element?')) {
|
|
$(this).slideUp(deleteElement);
|
|
}
|
|
}
|
|
});
|
|
});
|