Primer Commit
This commit is contained in:
20
assets/extra-libs/jquery.repeater/repeater-init.js
Normal file
20
assets/extra-libs/jquery.repeater/repeater-init.js
Normal file
@@ -0,0 +1,20 @@
|
||||
$(function() {
|
||||
'use strict';
|
||||
|
||||
// Default
|
||||
$('.repeater-default').repeater();
|
||||
|
||||
// Custom Show / Hide Configurations
|
||||
$('.file-repeater, .email-repeater').repeater({
|
||||
show: function() {
|
||||
$(this).slideDown();
|
||||
},
|
||||
hide: function(remove) {
|
||||
if (confirm('Are you sure you want to remove this item?')) {
|
||||
$(this).slideUp(remove);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user