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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-3 / +3 lines)
Lines 67-76 $(document).ready(function() { Link Here
67
                itm = $(this).text();
67
                itm = $(this).text();
68
                itm = itm.replace(/^\s*|\s*$/g,'');
68
                itm = itm.replace(/^\s*|\s*$/g,'');
69
                var current_column = $("#edit_row td:eq("+i+")");
69
                var current_column = $("#edit_row td:eq("+i+")");
70
                if ( i == 6 ) {
70
                if ( i == 7 ) {
71
                    // specific processing for the Hard due date column
71
                    // specific processing for the Hard due date column
72
                    var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val();
72
                    var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val();
73
                    var input_value = '';
73
                    var input_value = '';
74
                    console.log(select_value);
74
                    if (typeof select_value === 'undefined'){
75
                    if (typeof select_value === 'undefined'){
75
                        select_value = '-1';
76
                        select_value = '-1';
76
                    }else {
77
                    }else {
Lines 78-84 $(document).ready(function() { Link Here
78
                    }
79
                    }
79
                    $(current_column).find("input[type='text']").val(input_value);
80
                    $(current_column).find("input[type='text']").val(input_value);
80
                    $(current_column).find("select").val(select_value);
81
                    $(current_column).find("select").val(select_value);
81
                } else if ( i == 12 ) {
82
                } else if ( i == 13 ) {
82
                    // specific processing for cap_fine_to_replacement_price
83
                    // specific processing for cap_fine_to_replacement_price
83
                    var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']");
84
                    var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']");
84
                    $('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') );
85
                    $('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') );
85
- 

Return to bug 19539