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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-2 / +3 lines)
Lines 1914-1920 Link Here
1914
                            });
1914
                            });
1915
                           new_field.appendTo("#quick_add_list");
1915
                           new_field.appendTo("#quick_add_list");
1916
                       } else {
1916
                       } else {
1917
                           let orig_input_id = orig_li.children("input,textarea,select").last().attr("id");
1917
                           let orig_input_id = orig_li.children("input,textarea,select").filter(function() {
1918
                               return $(this).attr("id") && !$(this).is(':disabled') && $(this).css('display') !== 'none';
1919
                           }).first().attr("id");
1918
                           if ( orig_input_id ) {
1920
                           if ( orig_input_id ) {
1919
                               let new_field = orig_li.clone();
1921
                               let new_field = orig_li.clone();
1920
                               new_field.children("#"+orig_input_id).attr("id",orig_input_id + "_quick_add");
1922
                               new_field.children("#"+orig_input_id).attr("id",orig_input_id + "_quick_add");
1921
- 

Return to bug 39828