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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-1 / +3 lines)
Lines 41-49 Link Here
41
        $("#rate").keyup(function() {
41
        $("#rate").keyup(function() {
42
            if ( $(this).val() == 1.0 ) {
42
            if ( $(this).val() == 1.0 ) {
43
                $("#active").removeAttr('disabled');
43
                $("#active").removeAttr('disabled');
44
                $("#hint").html("");
44
            } else {
45
            } else {
45
                $("#active").removeAttr('checked');
46
                $("#active").removeAttr('checked');
46
                $("#active").attr('disabled','disabled');
47
                $("#active").attr('disabled','disabled');
48
                $("#hint").html(_("The active currency must have a rate of 1.0"));
47
            }
49
            }
48
        });
50
        });
49
    });
51
    });
Lines 114-119 Link Here
114
            [% ELSE %]
116
            [% ELSE %]
115
            <input type="checkbox" id="active" name="active" value="1" />
117
            <input type="checkbox" id="active" name="active" value="1" />
116
            [% END %]
118
            [% END %]
119
            <span id="hint" class="hint"></span>
117
        </li>
120
        </li>
118
121
119
        </ol>
122
        </ol>
120
- 

Return to bug 8119