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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt (-5 / +7 lines)
Lines 35-52 $(document).ready(function() { Link Here
35
            return false;
35
            return false;
36
        }
36
        }
37
    });
37
    });
38
39
    $("#conditional_field,#from_field").change(function(){
40
        updateAllEvery();
41
    });
38
});
42
});
39
//]]>
43
//]]>
40
</script>
44
</script>
41
45
42
<script>
46
<script>
43
47
function updateAllEvery(){
44
function updateWarnings(){
45
    if ( $("#conditional_field").is(":visible") ) {
48
    if ( $("#conditional_field").is(":visible") ) {
46
        if ( $("#conditional_field").val() == $("#from_field").val() && $("#from_field").val().length > 0 ) {
49
        if ( $("#conditional_field").val() == $("#from_field").val() && $("#from_field").val().length > 0 ) {
47
            $("#warning_multivalued").show();
50
            $("#field_number option[value='0']").html(_("Every"));
48
        } else {
51
        } else {
49
            $("#warning_multivalued").hide();
52
            $("#field_number option[value='0']").html(_("All"));
50
        }
53
        }
51
    }
54
    }
52
}
55
}
53
- 

Return to bug 11413