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

(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-7 / +7 lines)
Lines 307-319 $(document).ready(function(){ Link Here
307
        $("#quick_add_form #guarantorsearch, #guarantorsearch").val(LABEL_SET_TO_PATRON);
307
        $("#quick_add_form #guarantorsearch, #guarantorsearch").val(LABEL_SET_TO_PATRON);
308
    });
308
    });
309
309
310
    $("#select_city").change(function(){
310
    $(document.body).on('change','select[name="select_city"]',function(){
311
        $('select[name="select_city"]').val( $(this).val() );
311
        var myRegEx=new RegExp(/(.*)\|(.*)\|(.*)\|(.*)/);
312
        var myRegEx=new RegExp(/(.*)\|(.*)\|(.*)\|(.*)/);
312
        document.form.select_city.value.match(myRegEx);
313
        $(this).val().match(myRegEx);
313
        document.form.zipcode.value=RegExp.$1;
314
        $('input[name="zipcode"]').val( RegExp.$1 );
314
        document.form.city.value=RegExp.$2;
315
        $('input[name="city"]').val( RegExp.$2 );
315
        document.form.state.value=RegExp.$3;
316
        $('input[name="state"]').val( RegExp.$3 );
316
        document.form.country.value=RegExp.$4;
317
        $('input[name="country"]').val( RegExp.$4 );
317
    });
318
    });
318
319
319
    $("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" });
320
    $("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" });
320
- 

Return to bug 18569