|
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 |
- |
|
|