phone placeholder from country being edited

Prefer to pull in phone placeholder text based on the country currently
being edited.  Fallback to using placeholder text based on user’s
locale settings.

rename phone placeholders to phone formats

add Germany example phone number

See [German Wikipedia article
E.123](https://de.wikipedia.org/wiki/E.123)

check for null in focus

check that input.node() is not null in i.focus()
This commit is contained in:
Peter Dobratz
2016-04-25 12:13:01 -07:00
committed by Bryan Housel
parent 9974aae30b
commit 2d9327c5b9
4 changed files with 135 additions and 37 deletions
+4 -2
View File
@@ -18,7 +18,8 @@ iD.data = {
path + 'data/locales.json',
path + 'dist/locales/en.json',
path + 'data/name-suggestions.json',
path + 'data/address-formats.json'
path + 'data/address-formats.json',
path + 'data/phone-formats.json'
], d3.json, function (err, data) {
iD.data = {
@@ -37,7 +38,8 @@ iD.data = {
locales: data[10],
en: data[11],
suggestions: data[12],
addressFormats: data[13]
addressFormats: data[13],
phoneFormats: data[14]
};
callback();