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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-5 / +18 lines)
Lines 1836-1845 legend:hover { Link Here
1836
                        input_label='title';
1836
                        input_label='title';
1837
                    }
1837
                    }
1838
                    if( qaddfields.indexOf( input_label ) != -1 || $(this).attr('class') == 'required' ){
1838
                    if( qaddfields.indexOf( input_label ) != -1 || $(this).attr('class') == 'required' ){
1839
                       $(this).parent().clone().appendTo("#quick_add_list");
1839
                       let orig_li = $(this).parent();
1840
                       [% UNLESS mandatorypassword %]
1840
                       if( orig_li.attr('class') == 'radio' ){
1841
                             if( input_label == 'password' ) $("#entryform label[for='password2']").parent().clone().appendTo("#quick_add_list");
1841
                           let new_field = orig_li.clone();
1842
                       [% END %]
1842
                           new_field.children('label').each(function(){
1843
                                let child_input = $(this).children('input');
1844
                                child_input.attr("id",child_input.attr("id") + "_qa");
1845
                            });
1846
                           new_field.appendTo("#quick_add_list");
1847
                       } else {
1848
                           let orig_input_id = orig_li.children("input,textarea,select").attr("id");
1849
                           console.log( orig_input_id);
1850
                           let new_field = orig_li.clone();
1851
                           new_field.children("#"+orig_input_id).attr("id",orig_input_id + "_qa");
1852
                           new_field.appendTo("#quick_add_list");
1853
                           [% UNLESS mandatorypassword %]
1854
                                 if( input_label == 'password' ) $("#entryform label[for='password2']").parent().clone().appendTo("#quick_add_list");
1855
                           [% END %]
1856
                       }
1843
                    }
1857
                    }
1844
                });
1858
                });
1845
                if ( $("#memberentry_guarantor").length ) {
1859
                if ( $("#memberentry_guarantor").length ) {
1846
- 

Return to bug 31497