Created
March 8, 2016 09:40
-
-
Save drakvuf/1760a00b9e5a870d3905 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
valami: { | |
if (countrySelect.val() != '' && addressInput.val() != '') { | |
if (Number(addressInput.val()) && countrySelect.val() == 'Deutschland') { | |
for (var i = 0; i < merchants.length; i++) { | |
var merchant = merchants[i]; | |
var mz = merchant.zip_code.toString(); | |
var aiv = addressInput.val().toString(); | |
if (mz.indexOf(aiv) == 0 && merchant.fullCountryName == 'Deutschland') { | |
address_string = merchant.zip_code + ' ' + merchant.city; | |
console.log(merchant.zip_code + ' ' + merchant.city); | |
break valami; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment