Lines 1531-1536
Link Here
|
1531 |
$(this).attr('selected', 'selected'); |
1531 |
$(this).attr('selected', 'selected'); |
1532 |
} |
1532 |
} |
1533 |
}); |
1533 |
}); |
|
|
1534 |
var current_input_id = $(current_column).children('input').first().attr('id'); |
1534 |
if ( i == 0 || i == 1 ) { |
1535 |
if ( i == 0 || i == 1 ) { |
1535 |
// Disable the 2 first columns, we cannot update them. |
1536 |
// Disable the 2 first columns, we cannot update them. |
1536 |
var val = $(current_column).find("select option:selected").val(); |
1537 |
var val = $(current_column).find("select option:selected").val(); |
Lines 1541-1553
Link Here
|
1541 |
// Remove potential previous input added |
1542 |
// Remove potential previous input added |
1542 |
$(current_column).find("input").remove(); |
1543 |
$(current_column).find("input").remove(); |
1543 |
$(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />"); |
1544 |
$(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />"); |
1544 |
} else if ( i == 5 || i == 6 || i == 26 || i == 27 || i == 28 ) { |
1545 |
} else if ( i == 5 || i == 6 || i == 26 || i == 27 || i == 28 || current_input_id === "holds_pickup_period" ) { |
1545 |
// If the value is not an integer for |
1546 |
// If the value is not an integer for |
1546 |
// - "Current checkouts allowed" |
1547 |
// - "Current checkouts allowed" |
1547 |
// - "Current on-site checkouts allowed" |
1548 |
// - "Current on-site checkouts allowed" |
1548 |
// - "Holds allowed (total)" |
1549 |
// - "Holds allowed (total)" |
1549 |
// - "Holds allowed (daily)" |
1550 |
// - "Holds allowed (daily)" |
1550 |
// - "Holds per record (count)" |
1551 |
// - "Holds per record (count)" |
|
|
1552 |
// - "Holds pickup period (day)" |
1551 |
// The value is "Unlimited" (or an equivalent translated string) |
1553 |
// The value is "Unlimited" (or an equivalent translated string) |
1552 |
// an it should be set to an empty string |
1554 |
// an it should be set to an empty string |
1553 |
if( !((parseFloat(itm_text) == parseInt(itm_text)) && !isNaN(itm_text)) ) { |
1555 |
if( !((parseFloat(itm_text) == parseInt(itm_text)) && !isNaN(itm_text)) ) { |
1554 |
- |
|
|