Некодим логотипНекодим
МодификацииПубликацииНекодИИмЦены
Некодим логотипНекодим

© 2020-2026 Некодим

Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.

Компания

  • Контакты
  • Публичная оферта
  • Политика конфиденциальности
  • Согласие на обработку данных
  • Лицензионное соглашение
  • Реферальная программа

Полезное

  • Модификации
  • Публикации
  • Каталог блоков Tilda
  • MCP для агентов
  • Журнал изменений
  • Доска почёта

Личный кабинет

  • Вход
  • Регистрация
  • Цены
Журнал измененийИстория GitФайлыTilda MCP
Каталог файлов

tilda-catalog-1.1.js

Код файла
Версия от 04.12.2026, 04:03:55 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
2001												t_store_triggerEvent(select, 'change');2002												return; // После первого изменения выходим2003											}2004										} else {2005											t_store_triggerEvent(select, 'change');2006											return;2007										}2008									}2009								}2010							}2011						}2012					}
История файла и сравнение версий
  • 04.12.2026, 04:03:55 · 56c3b845
2013
}
2014 );
2015 });
2016 }
2017
2018 if (!isNextSlice && options.isFlexCols && options.isHorizOnMob) {
2019 var storeTailGap = gridContainer.querySelector('.t-store__tail-gap');
2020 t_store__removeElement(storeTailGap);
2021 gridContainer.insertAdjacentHTML('beforeend', '<div class="t-store__tail-gap"></div>');
2022 }
2023
2024 // init js events and do js updates
2025 if (window.lazy === 'y' || document.getElementById('allrecords').getAttribute('data-tilda-lazy') === 'yes') {
2026 if (options.relevants_slider) {
2027 setTimeout(function () {
2028 t_store_onFuncLoad('t_lazyload_update', function () {
2029 t_lazyload_update();
2030 });
2031 }, 100);
2032 } else {
2033 t_store_onFuncLoad('t_lazyload_update', function () {
2034 t_lazyload_update();
2035 });
2036 }
2037 }
2038
2039 if (document.querySelector('.t706__cartwin') || document.querySelector('.t706__sidebar')) {
2040 if (typeof tcart__addEvent__links === 'function') {
2041 tcart__addEvent__links(recid);
2042 }
2043 } else {
2044 console.warn('Warning: cart block is not added to this page');
2045 }
2046
2047 t_store_initPopup(recid, obj_products, options, isRelevantsShow, obj);
2048
2049 if (options.prodCard.blockId == '1025') {
2050 setTimeout(() => {
2051 // добавляем задержку, чтобы учесть кейс, когда мы проверяем ширину колонки с базовым шрифтом
2052 // а потом подгружается реальный шрифт (который может быть больше/меньше чем базовый)
2053 t_store_unifyCardsWidth(recid);
2054 }, 1000);
2055 }
2056
2057 if (!options.previewmode) {
2058 try {
2059 /* TODO: fix */
2060
2061 window.tp__record__addEditFieldEvents(recid);
2062 } catch (e) {
2063 console.error(e.message);
2064 }
2065 }
2066}
2067
2068/**
2069 * Append products to the grid container and show them
2070 *
2071 * @param {HTMLElement} el_rec
2072 * @param {HTMLElement} gridContainer - the grid container where the products will be appended
2073 * @param {string} productsHtml - the HTML of the products to be appended to the grid
2074 **/
2075function t_store_process_appendAndShowProducts(el_rec, gridContainer, productsHtml) {
2076 gridContainer.insertAdjacentHTML('beforeend', productsHtml);
2077 if (el_rec.getAttribute('data-already-loaded-first-products') === true) {
2078 // products in pagination and in tabs we show with transition
2079 setTimeout(function () {
2080 Array.prototype.forEach.call(el_rec.querySelectorAll('.t-store__card'), function (card) {
2081 card.classList.remove('t-store__card_hidden');
2082 });
2083 }, 10);
2084 } else {
2085 // first products we show without transition
2086 Array.prototype.forEach.call(el_rec.querySelectorAll('.t-store__card'), function (card) {
2087 card.classList.remove('t-store__card_hidden');
2088 });
2089 // flag, that next loaded products wouldn't be first for this rec
2090 el_rec.setAttribute('data-already-loaded-first-products', true);
2091 }
2092}
2093
2094/**
2095 * Checks if the load button is visible and if it is, it hides it
2096 *
2097 * @param {string} recid
2098 * @param {object} options
2099 **/
2100function t_store_mobileHoriz_checkBtnVisibility(recid, options) {
Предыдущие 100 строкСледующие 100 строк