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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (-1 / +1 lines)
Lines 171-177 Link Here
171
                    [% ELSIF ( mv.type == 'datetime_field' ) %]
171
                    [% ELSIF ( mv.type == 'datetime_field' ) %]
172
                         <input type="text" id="[% mv.id | html %]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %] flatpickr" value="[% mv.value | html %]" data-flatpickr-enable-time="true" data-flatpickr-set-to-today="true" />
172
                         <input type="text" id="[% mv.id | html %]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %] flatpickr" value="[% mv.value | html %]" data-flatpickr-enable-time="true" data-flatpickr-set-to-today="true" />
173
                    [% ELSIF ( mv.type == 'replacementprice' ) %]
173
                    [% ELSIF ( mv.type == 'replacementprice' ) %]
174
                        <input class="decimal valid input_marceditor [% kohafield | html %]" type="text" id="[% mv.id | html %]" name="[% kohafield | html %]" value="[% mv.value | html %]" aria-invalid="false" />
174
                        <input class="replacement_price_decimal valid input_marceditor [% kohafield | html %]" type="text" id="[% mv.id | html %]" name="[% kohafield | html %]" value="[% mv.value | html %]" />
175
                    [% END %]
175
                    [% END %]
176
176
177
                    [% IF subfield.kohafield == 'items.more_subfields_xml' %]
177
                    [% IF subfield.kohafield == 'items.more_subfields_xml' %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-1 / +9 lines)
Lines 157-162 $(document).ready(function () { Link Here
157
        decimal_rate: true
157
        decimal_rate: true
158
    });
158
    });
159
159
160
    jQuery.validator.addMethod("replacement_price_decimal_rate", function(value, element) {
161
        return this.optional(element) || /^\d{1,6}(\.\d{1,2})?$/.test(value);
162
    }, __('Please enter up to 6 digits before the decimal and 2 digits after.'));
163
164
    jQuery.validator.addClassRules("replacement_price_decimal", {
165
        replacement_price_decimal_rate: true
166
    });
167
168
160
    $("#logout").on("click", function () {
169
    $("#logout").on("click", function () {
161
        logOut();
170
        logOut();
162
    });
171
    });
163
- 

Return to bug 38839