View | Details | Raw Unified | Return to bug 32949
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-2 / +6 lines)
Lines 1484-1496 Link Here
1484
                        }else {
1484
                        }else {
1485
                            input_value = itm.split(' ')[1];
1485
                            input_value = itm.split(' ')[1];
1486
                        }
1486
                        }
1487
                        $(current_column).find("input[type='text']").val(input_value);
1487
                        const fp = $(current_column).find("input.flatpickr").get(0)._flatpickr;
1488
                        fp.setDate(input_value, true, '[% IF ( dateformat == "us" ) %]m/d/Y[% ELSIF ( dateformat == "metric" ) %]d/m/Y[% ELSIF ( dateformat == "dmydot" ) %]d.m.Y[% ELSE %]Y-m-d[% END %]');
1488
                        $(current_column).find("select").val(select_value);
1489
                        $(current_column).find("select").val(select_value);
1489
                    } else if ( i == 16 ) {
1490
                    } else if ( i == 16 ) {
1490
                        // specific processing for cap_fine_to_replacement_price
1491
                        // specific processing for cap_fine_to_replacement_price
1491
                        var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']");
1492
                        var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']");
1492
                        $('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') );
1493
                        $('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') );
1493
                        $('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') );
1494
                        $('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') );
1495
                    } else if ( i == 25 ) {
1496
                        // specific processing for the hard limit for the automatic renewal after
1497
                        const fp = $(current_column).find("input.flatpickr").get(0)._flatpickr;
1498
                        fp.setDate(itm, true, '[% IF ( dateformat == "us" ) %]m/d/Y[% ELSIF ( dateformat == "metric" ) %]d/m/Y[% ELSIF ( dateformat == "dmydot" ) %]d.m.Y[% ELSE %]Y-m-d[% END %]');
1494
                    } else {
1499
                    } else {
1495
                        $(current_column).find("input[type='text']").val(itm);
1500
                        $(current_column).find("input[type='text']").val(itm);
1496
                        // select the corresponding option
1501
                        // select the corresponding option
1497
- 

Return to bug 32949