Skip to content

Commit 4849fbf

Browse files
committed
fix: gestione caratteri per codice sia
1 parent 067b6c2 commit 4849fbf

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

assets/src/js/functions/inputmask.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ function initMaskInput(input) {
4242
$input.inputmask('Regex', {
4343
regex: "[A-Za-z0-9#_|\/\\-.]*",
4444
});
45+
} else if ($input.hasClass('sia-code-mask')) {
46+
$input.inputmask('Regex', {
47+
regex: "[A-Za-z0-9#_|\/\\-.\\$]*",
48+
});
4549
} else if ($input.hasClass('math-mask')) {
4650
$input.inputmask('Regex', {
4751
regex: "[0-9,.+\-]*",

modules/banche/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
</div>
7575

7676
<div class="col-md-6">
77-
{[ "type": "text", "label": "<?php echo tr('Codice SIA azienda'); ?>", "name": "codice_sia", "class": "alphanumeric-mask", "maxlength": 5, "value": "$codice_sia$", "help":"<?php echo tr('Società Interbancaria per l\'Automazione. Questo campo è necessario per la generazione delle Ri.Ba.<br>E\' composto da 5 caratteri alfanumerici.'); ?>" ]}
77+
{[ "type": "text", "label": "<?php echo tr('Codice SIA azienda'); ?>", "name": "codice_sia", "class": "sia-code-mask", "maxlength": 5, "value": "$codice_sia$", "help":"<?php echo tr('Società Interbancaria per l\'Automazione. Questo campo è necessario per la generazione delle Ri.Ba.<br>E\' composto da 5 caratteri alfanumerici.'); ?>" ]}
7878
</div>
7979
</div>
8080

0 commit comments

Comments
 (0)