mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-19 21:10:49 +01:00
Fix #1066
This commit is contained in:
parent
766b47b264
commit
9302bf364b
@ -107,32 +107,35 @@ echo '
|
|||||||
}
|
}
|
||||||
|
|
||||||
function scomponiIban() {
|
function scomponiIban() {
|
||||||
$.ajax({
|
let value = iban.get();
|
||||||
url: globals.rootdir + '/actions.php',
|
if (value.length > 25) {
|
||||||
data: {
|
$.ajax({
|
||||||
id_module: globals.id_module,
|
url: globals.rootdir + '/actions.php',
|
||||||
op: "decompose",
|
data: {
|
||||||
iban: iban.get(),
|
id_module: globals.id_module,
|
||||||
},
|
op: "decompose",
|
||||||
type: 'GET',
|
iban: iban.get(),
|
||||||
dataType: "json",
|
},
|
||||||
success: function (response) {
|
type: 'GET',
|
||||||
compilaCampi(response);
|
dataType: "json",
|
||||||
|
success: function (response) {
|
||||||
|
compilaCampi(response);
|
||||||
|
|
||||||
if (response.id_nazione.iso2 === "IT"){
|
if (response.id_nazione.iso2 === "IT"){
|
||||||
bic.setRequired(false);
|
bic.setRequired(false);
|
||||||
var label_text = $('label[for=bic] span .text-red').text();
|
var label_text = $('label[for=bic] span .text-red').text();
|
||||||
$('label[for=bic] span .text-red').text(label_text.replace('*', ' '));
|
$('label[for=bic] span .text-red').text(label_text.replace('*', ' '));
|
||||||
} else {
|
} else {
|
||||||
bic.setRequired(true);
|
bic.setRequired(true);
|
||||||
var label_text = $('label[for=bic] span .text-red').text();
|
var label_text = $('label[for=bic] span .text-red').text();
|
||||||
$('label[for=bic] span .text-red').text(label_text.replace(' ', '*'));
|
$('label[for=bic] span .text-red').text(label_text.replace(' ', '*'));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function() {
|
||||||
|
toastr["error"]("<?php echo tr('Formato IBAN non valido'); ?>");
|
||||||
}
|
}
|
||||||
},
|
});
|
||||||
error: function() {
|
}
|
||||||
toastr["error"]("<?php echo tr('Formato IBAN non valido'); ?>");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function componiIban() {
|
function componiIban() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user