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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-1 / +1 lines)
Lines 2043-2049 legend.collapsed i.fa.fa-caret-down::before { Link Here
2043
                            });
2043
                            });
2044
                           new_field.appendTo("#quick_add_list");
2044
                           new_field.appendTo("#quick_add_list");
2045
                       } else {
2045
                       } else {
2046
                           let orig_input_id = orig_li.children("input,textarea,select").attr("id");
2046
                           let orig_input_id = orig_li.children("input,textarea,select").last().attr("id");
2047
                           if ( orig_input_id ) {
2047
                           if ( orig_input_id ) {
2048
                               let new_field = orig_li.clone();
2048
                               let new_field = orig_li.clone();
2049
                               new_field.children("#"+orig_input_id).attr("id",orig_input_id + "_quick_add");
2049
                               new_field.children("#"+orig_input_id).attr("id",orig_input_id + "_quick_add");
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-5 / +4 lines)
Lines 226-235 $(document).ready(function(){ Link Here
226
        var addressfield = $(this).data("addressfield");
226
        var addressfield = $(this).data("addressfield");
227
        var myRegEx=new RegExp(/(.*)\|(.*)\|(.*)\|(.*)/);
227
        var myRegEx=new RegExp(/(.*)\|(.*)\|(.*)\|(.*)/);
228
        var matches = selected_city.match( myRegEx );
228
        var matches = selected_city.match( myRegEx );
229
        $("#" + addressfield + "zipcode").val( matches[1] );
229
        $("#" + addressfield + "zipcode,#" + addressfield + "zipcode_quick_add").val( matches[1] );
230
        $("#" + addressfield + "city").val( matches[2] );
230
        $("#" + addressfield + "city,#" + addressfield + "city_quick_add").val( matches[2] );
231
        $("#" + addressfield + "state").val( matches[3] );
231
        $("#" + addressfield + "state,#" + addressfield + "state_quick_add").val( matches[3] );
232
        $("#" + addressfield + "country").val( matches[4] );
232
        $("#" + addressfield + "country,#" + addressfield + "country_quick_add").val( matches[4] );
233
    });
233
    });
234
234
235
    dateformat = $("#dateofbirth").siblings(".hint").first().html();
235
    dateformat = $("#dateofbirth").siblings(".hint").first().html();
236
- 

Return to bug 38459