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

(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js (-1 / +6 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 ) { // Deal with date inputs
570
            editor = $(this).siblings(".flatpickr_wrapper").find(".input_marceditor");
571
        }
569
        if (!editor.val()) {
572
        if (!editor.val()) {
570
            editor.addClass("missing");
573
            editor.addClass("missing");
571
            total++;
574
            total++;
Lines 578-583 function CheckImportantSubfields(p){ Link Here
578
    var total = 0;
581
    var total = 0;
579
    $(p).find(".subfield_line input[name='important'][value='1']").each(function(i){
582
    $(p).find(".subfield_line input[name='important'][value='1']").each(function(i){
580
        var editor = $(this).siblings(".input_marceditor");
583
        var editor = $(this).siblings(".input_marceditor");
584
        if ( !editor.length ) { // Deal with date inputs
585
            editor = $(this).siblings(".flatpickr_wrapper").find(".input_marceditor");
586
        }
581
        if (!editor.val()) {
587
        if (!editor.val()) {
582
            editor.addClass("missing");
588
            editor.addClass("missing");
583
            total++;
589
            total++;
584
- 

Return to bug 30376