Изменения документа Homeopaths
Редактировал(а) Jip-jan Alunkel марта 14, 20:13
От версии 2.3
отредактировано Jip-jan Alunkel
на ноября 28, 14:46
на ноября 28, 14:46
Изменить комментарий:
Renamed from xwiki:practices.WebHome
К версии 5.1
отредактировано Jip-jan Alunkel
на ноября 28, 15:08
на ноября 28, 15:08
Изменить комментарий:
Renamed from xwiki:practices.WebHome
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -24,8 +24,8 @@ 24 24 "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')", 25 25 "data-error-response-type" : "use_label_definite_1", 26 26 "data-auto-first-capital" : "true", 27 - "data-query-type" : " JSON",28 - "data-query-reference" : " assets.pagemaker.JSON.remedies",27 + "data-query-type" : "address", 28 + "data-query-reference" : "", 29 29 "data-query-list-type" : "suggest-select", 30 30 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')", 31 31 "data-query-list-contents" : "value/key", ... ... @@ -35,10 +35,20 @@ 35 35 "data-xobj-fieldname" : "address", 36 36 "help-block" : 'Input and select the address of your practice.' 37 37 }) 38 + 39 +var requestOptions = { 40 + method: 'GET', 41 +}; 42 + 43 +fetch("https://api.geoapify.com/v1/geocode/autocomplete?text=Mosco&apiKey=6b74bd47f4204990b23386d8e8a0952b", requestOptions) 44 + .then(response => response.json()) 45 + .then(result => console.log(result)) 46 + .catch(error => console.log('error', error)); 47 + 38 38 #createFormElement($address) 39 39 #set($submit = { 40 40 "id" : "create_case", 41 - "button-text" : " Create new case",51 + "button-text" : "Submit", 42 42 "help-block" : "Please remind yourself to always anonymize the case." 43 43 }) 44 44 #createSubmit($submit)