arraglado el problema

This commit is contained in:
Jaime Jiménez Ortega
2024-04-24 11:48:40 +02:00
parent 3e6a253a89
commit 6d91bb5ace
2 changed files with 1198 additions and 18 deletions

View File

@ -1531,8 +1531,9 @@ async function set_lp_bn_gramaje(){
var option = $('<option/>', {'value':data.menu[item].id, 'text':data.menu[item].text})
$('#lp_bn_gramaje').append(option);
});
const option = $("select#lp_bn_gramaje option:equal('" + previous + "')");
option.prop('selected', true);
$('#lp_bn_gramaje option').filter(function() {
return $(this).html() == previous;
}).prop('selected', true);
}
});
}
@ -1836,7 +1837,7 @@ function fill_lp_bn(row, fromComparator=false){
function eventos_lp_bn(isInkjet = false){
$('#lp_bn_papel').bind("change", {clear_selectors: true}, clear_lp_bn);
$('#lp_bn_gramaje').bind("focus", set_lp_bn_gramaje);
$('#lp_bn_gramaje').bind("click", set_lp_bn_gramaje);
$('#lp_bn_gramaje').on('change', function(){
var previous = $(this).data('val');
const selected = $("select#lp_bn_gramaje option:selected");
@ -1888,8 +1889,9 @@ async function set_lp_color_gramaje(){
var option = $('<option/>', {'value':data.menu[item].id, 'text':data.menu[item].text})
$('#lp_color_gramaje').append(option);
});
const option = $("select#lp_color_gramaje option:equal('" + previous + "')");
option.prop('selected', true);
$('#lp_color_gramaje option').filter(function() {
return $(this).html() == previous;
}).prop('selected', true);
}
});
}
@ -2185,7 +2187,7 @@ function fill_lp_color(row, fromComparator=false){
function eventos_lp_color(isInkjet = false){
$('#lp_color_papel').bind("change", {clear_selectors: true}, clear_lp_color);
$('#lp_color_gramaje').bind("focus", set_lp_color_gramaje);
$('#lp_color_gramaje').bind("click", set_lp_color_gramaje);
$('#lp_color_gramaje').on('change', function(){
var previous = $(this).data('val');
const selected = $("select#lp_color_gramaje option:selected");
@ -2238,8 +2240,9 @@ async function set_lp_bnhq_gramaje(){
var option = $('<option/>', {'value':data.menu[item].id, 'text':data.menu[item].text})
$('#lp_bnhq_gramaje').append(option);
});
const option = $("select#lp_bnhq_gramaje option:equal('" + previous + "')");
option.prop('selected', true);
$('#lp_bnhq_gramaje option').filter(function() {
return $(this).html() == previous;
}).prop('selected', true);
}
});
}
@ -2534,7 +2537,7 @@ function fill_lp_bnhq(row, fromComparator=false){
function eventos_lp_bnhq(isInkjet = false){
$('#lp_bnhq_papel').bind("change", {clear_selectors: true}, clear_lp_bnhq);
$('#lp_bnhq_gramaje').bind("focus", set_lp_bnhq_gramaje);
$('#lp_bnhq_gramaje').bind("click", set_lp_bnhq_gramaje);
$('#lp_bnhq_gramaje').on('change', function(){
var previous = $(this).data('val');
const selected = $("select#lp_bnhq_gramaje option:selected");
@ -2586,8 +2589,9 @@ async function set_lp_colorhq_gramaje(){
var option = $('<option/>', {'value':data.menu[item].id, 'text':data.menu[item].text})
$('#lp_colorhq_gramaje').append(option);
});
const option = $("select#lp_colorhq_gramaje option:equal('" + previous + "')");
option.prop('selected', true);
$('#lp_colorhq_gramaje option').filter(function() {
return $(this).html() == previous;
}).prop('selected', true);
}
});
}
@ -2892,7 +2896,7 @@ function fill_lp_colorhq(row, fromComparator=false){
function eventos_lp_colorhq(isInkjet = false){
$('#lp_colorhq_papel').bind("change", {clear_selectors: true}, clear_lp_colorhq);
$('#lp_colorhq_gramaje').bind("focus", set_lp_colorhq_gramaje);
$('#lp_colorhq_gramaje').bind("click", set_lp_colorhq_gramaje);
$('#lp_colorhq_gramaje').on('change', function(){
var previous = $(this).data('val');
const selected = $("select#lp_colorhq_gramaje option:selected");
@ -3664,8 +3668,9 @@ async function set_lp_cubierta_gramaje(){
var option = $('<option/>', {'value':data.menu[item].id, 'text':data.menu[item].text})
$('#lp_cubierta_gramaje').append(option);
});
const option = $("select#lp_cubierta_gramaje option:equal('" + previous + "')");
option.prop('selected', true);
$('#lp_cubierta_gramaje option').filter(function() {
return $(this).html() == previous;
}).prop('selected', true);
}
});
@ -3907,7 +3912,7 @@ function fill_lp_cubierta(row, fromComparador=false){
function eventos_lp_cubierta(){
$('#lp_cubierta_papel').bind("change", {clear_selectors: true}, clear_lp_cubierta);
$('#lp_cubierta_gramaje').bind("focus", set_lp_cubierta_gramaje);
$('#lp_cubierta_gramaje').bind("click", set_lp_cubierta_gramaje);
$('#lp_cubierta_gramaje').on('change', function(){
var previous = $(this).data('val');
const selected = $("select#lp_cubierta_gramaje option:selected");
@ -3961,8 +3966,9 @@ async function set_lp_sobrecubierta_gramaje(){
var option = $('<option/>', {'value':data.menu[item].id, 'text':data.menu[item].text})
$('#lp_sobrecubierta_gramaje').append(option);
});
const option = $("select#lp_sobrecubierta_gramaje option:equal('" + previous + "')");
option.prop('selected', true);
$('#lp_sobrecubierta_gramaje option').filter(function() {
return $(this).html() == previous;
}).prop('selected', true);
}
});
@ -4190,7 +4196,7 @@ function fill_lp_sobrecubierta(row, fromComparador=false){
function eventos_lp_sobrecubierta(){
$('#lp_sobrecubierta_papel').bind("change", {clear_selectors: true}, clear_lp_sobrecubierta);
$('#lp_sobrecubierta_gramaje').bind("focus", set_lp_sobrecubierta_gramaje);
$('#lp_sobrecubierta_gramaje').bind("click", set_lp_sobrecubierta_gramaje);
$('#lp_sobrecubierta_gramaje').on('change', function(){
var previous = $(this).data('val');
const selected = $("select#lp_sobrecubierta_gramaje option:selected");

1174
xdebug.log

File diff suppressed because it is too large Load Diff