Zenova ( Tracker Form) - Number issue fix
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m45s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m45s
Details
This commit is contained in:
parent
c513584c16
commit
75d30a6a84
|
|
@ -246,6 +246,27 @@
|
|||
$('#field-total_rx_count').val(total)
|
||||
})
|
||||
|
||||
|
||||
const selector = '#field-sitazit_rx_count, #field-sitazit_dm_rx_count, #field-sitazit_d_rx_count, #field-sitazit_m_rx_count, #field-sitazit_trio_rx_count';
|
||||
|
||||
$(selector).on('input', function() {
|
||||
|
||||
let value = this.value.replace(/[^0-9]/g, '');
|
||||
|
||||
|
||||
value = value.replace(/^0+/, '');
|
||||
|
||||
this.value = value;
|
||||
});
|
||||
|
||||
|
||||
$(selector).on('keypress', function(e) {
|
||||
|
||||
if (e.which < 48 || e.which > 57) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$('#field-file_upload').on('change', function () {
|
||||
let file = this.files[0];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue