Team 3 (Channel Partner Input Reporting Form)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 40s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 40s
Details
This commit is contained in:
parent
6d7fdcdb6e
commit
d21ae98997
|
|
@ -289,6 +289,28 @@
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
function slugify(value) {
|
||||
return value
|
||||
.toString()
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.replace(/\s+/g, '_') // spaces -> -
|
||||
.replace(/[^\w-]+/g, '') // special characters remove
|
||||
.replace(/--+/g, '-') // multiple - -> single -
|
||||
.replace(/^-+|-+$/g, ''); // starting/ending - remove
|
||||
}
|
||||
|
||||
|
||||
$('#field-input_name').on('change',function(){
|
||||
$('#report-form input.dynamic-hidden').remove();
|
||||
|
||||
let inputName = slugify($(this).val());
|
||||
|
||||
$('#report-form').append('<input type="hidden" class="dynamic-hidden" name="' + inputName + '" value="1">');
|
||||
})
|
||||
|
||||
|
||||
/* $('#field-upload_invoice_photo,#field-bag_distribution_photo ').on('change', function () {
|
||||
let file = this.files[0];
|
||||
|
||||
|
|
|
|||
|
|
@ -253,15 +253,7 @@
|
|||
|
||||
// $('#field-contact_id').append('<option value="others">Others</option>');
|
||||
|
||||
$('#field-sitazit_d_rx,#field-sitazit_dm_rx,#field-ziten_m_rx').on('input', function() {
|
||||
var total=(
|
||||
(parseInt($('#execution-sitazit_d_rx').val())*15 ||0)+
|
||||
(parseInt($('#execution-sitazit_dm_rx').val())*25 ||0)+
|
||||
(parseInt($('#execution-ziten_m_rx').val())*35 ||0)
|
||||
);
|
||||
|
||||
$('#execution-total_camp_rx').val(total)
|
||||
})
|
||||
|
||||
|
||||
|
||||
$('#field-upload_invoice_photo,#field-upload_invoice_photo_2,#field-upload_invoice_photo_3')
|
||||
|
|
@ -290,6 +282,27 @@
|
|||
$(this).val('');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function slugify(value) {
|
||||
return value
|
||||
.toString()
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.replace(/\s+/g, '_') // spaces -> -
|
||||
.replace(/[^\w-]+/g, '') // special characters remove
|
||||
.replace(/--+/g, '-') // multiple - -> single -
|
||||
.replace(/^-+|-+$/g, ''); // starting/ending - remove
|
||||
}
|
||||
|
||||
|
||||
$('#field-input_name').on('change',function(){
|
||||
$('#report-form input.dynamic-hidden').remove();
|
||||
|
||||
let inputName = slugify($(this).val());
|
||||
|
||||
$('#report-form').append('<input type="hidden" class="dynamic-hidden" name="' + inputName + '" value="1">');
|
||||
})
|
||||
|
||||
|
||||
/*$('#field-upload_invoice_photo,#field-bag_distribution_photo,').on('change', function () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue