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

(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-1 / +12 lines)
Lines 566-571 function CheckMandatorySubfields(p){ Link Here
566
    var total = 0;
566
    var total = 0;
567
    $(p).find(".subfield_line input[name='mandatory'][value='1']").each(function(){
567
    $(p).find(".subfield_line input[name='mandatory'][value='1']").each(function(){
568
        var editor = $(this).siblings(".input_marceditor");
568
        var editor = $(this).siblings(".input_marceditor");
569
        if (editor.length === 0) {
570
            var flatpickr_editor = $(this).siblings("span.flatpickr_wrapper").children(".input_marceditor");
571
            if (flatpick_editor.length === 1) {
572
                editor = flatpickr_editor;
573
            }
574
        }
569
        if (!editor.val()) {
575
        if (!editor.val()) {
570
            editor.addClass("missing");
576
            editor.addClass("missing");
571
            total++;
577
            total++;
Lines 578-583 function CheckImportantSubfields(p){ Link Here
578
    var total = 0;
584
    var total = 0;
579
    $(p).find(".subfield_line input[name='important'][value='1']").each(function(i){
585
    $(p).find(".subfield_line input[name='important'][value='1']").each(function(i){
580
        var editor = $(this).siblings(".input_marceditor");
586
        var editor = $(this).siblings(".input_marceditor");
587
        if (editor.length === 0) {
588
            var flatpickr_editor = $(this).siblings("span.flatpickr_wrapper").children(".input_marceditor");
589
            if (flatpick_editor.length === 1) {
590
                editor = flatpickr_editor;
591
            }
592
        }
581
        if (!editor.val()) {
593
        if (!editor.val()) {
582
            editor.addClass("missing");
594
            editor.addClass("missing");
583
            total++;
595
            total++;
584
- 

Return to bug 30376