Каталог файловtilda-delivery-1.0.js
1601 searchInput.setAttribute('data-option-selected', false);1602 }1603 1604 var onDoneAddressesStreet = function (data) {1605 searchbox.classList.remove('load');1606 searchbox.readOnly = false;1607 1608 if (data.error || data.length === 0) {1609 if (searchInput.value !== '') {1610 searchList.innerHTML =1611 '<div class="searchbox-list-item t-text" style="user-select: none; pointer-events: none;">' +1612
История файла и сравнение версий
t_delivery__dict('noResult') +
1615 searchList.innerHTML = ''; 1620 that.deliveryState.searchboxes[searchboxId].autocompleteAddress = data[0]; 1621 that.fillSearchList(searchList, data, 'address'); 1622 that.choseSearchListItemHandler(searchbox, searchboxType); 1625 that.getAddresses(ajaxData, searchboxType, onDoneAddressesStreet, function (error) { 1626 that.changeEndpoint(error, function () { 1627 that.getAddresses(ajaxData, searchboxType, onDoneAddressesStreet); 1636 fias: this.deliveryState.streetGuid || this.deliveryState.cityGuid, 1638 ajaxData = JSON.stringify(ajaxData); 1640 var onDoneAddressesHouse = function (data) { 1641 searchbox.classList.remove('load'); 1642 searchbox.readOnly = false; 1644 if (data.error || data.length === 0) { 1645 searchList.innerHTML = ''; 1649 if (!that.deliveryState.searchboxes[searchboxId]) { 1650 that.deliveryState.searchboxes[searchboxId] = {}; 1653 that.deliveryState.searchboxes[searchboxId].autocompleteAddress = data[0]; 1654 that.fillSearchList(searchList, data, 'address'); 1655 that.choseSearchListItemHandler(searchbox, searchboxType); 1657 var searchListElement = searchbox.querySelector('.searchbox-list'); 1658 if (searchListElement) { 1659 searchListElement.style.display = ''; 1663 that.getAddresses(ajaxData, searchboxType, onDoneAddressesHouse, function (error) { 1664 that.changeEndpoint(error, function () { 1665 that.getAddresses(ajaxData, searchboxType, onDoneAddressesHouse); 1672 searchbox.classList.remove('load'); 1673 searchbox.readOnly = false; 1678 changeSearchboxInputHandler: function (e, searchbox, searchboxType) { 1680 var searchList = searchbox.querySelector('.searchbox-list'); 1681 var searchInput = searchbox.querySelector('.searchbox-input'); 1683 var inputWrapper = searchInput.closest('.t-input-block'); 1685 var searchboxId = searchbox.getAttribute('id'); 1686 var serviceId = parseInt(searchInput.getAttribute('data-service-id')); 1687 var isAddressStrong; 1690 isAddressStrong = this.deliveryState.services[serviceId].strongAddress; 1693 if (searchInput.classList.contains('load')) { 1697 var pattern = (e.target.value || '').trim(); 1700 if (!searchbox.classList.contains('load')) {