INSERT INTO `cp_filehtml` (`id`,`modul`,`app`,`path`,`type`,`cat`,`file_name`,`content`) VALUES ('474','profile','1','u2/creator','0','js','view-user-profile.js---','$(document).on(\\\\\\\\\\\\\\\'infinite\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\'.profile-landing-page.infinite-scroll-content.view-page\\\\\\\\\\\\\\\', async function (e) {\r\n if (isFetchingPosts) return\r\n\r\n const activeTab = document.querySelector(\\\\\\\\\\\\\\\'.profile-tabs .tab-link-active\\\\\\\\\\\\\\\')\r\n const activeTabId = activeTab.id\r\n\r\n if (!activeTabId || activeTabId === \\\\\\\\\\\\\\\'my-garage\\\\\\\\\\\\\\\') return\r\n\r\n const getterFunc = activeTabId === \\\\\\\\\\\\\\\'my-posts\\\\\\\\\\\\\\\' ? \\\\\\\\\\\\\\\'getUserPosts\\\\\\\\\\\\\\\' : \\\\\\\\\\\\\\\'getUserTags\\\\\\\\\\\\\\\'\r\n\r\n isFetchingPosts = true\r\n\r\n if (activeTabId === \\\\\\\\\\\\\\\'my-posts\\\\\\\\\\\\\\\') {\r\n currentPostPage++\r\n if (currentPostPage <= totalPostPages) {\r\n await store.dispatch(getterFunc, {\r\n user_id: userId,\r\n page: currentPostPage\r\n })\r\n isFetchingPosts = false\r\n }\r\n } else {\r\n currentFPostPage++\r\n\r\n if (currentFPostPage <= totalFPostPages) {\r\n await store.dispatch(getterFunc, {\r\n user_id: userId,\r\n page: currentFPostPage\r\n })\r\n isFetchingPosts = false\r\n }\r\n }\r\n})');
Add JS Function Name
profile
pages/profile-edit-images.html
pages/profile-edit-images.html
- $(document).on('click', '#save-profile-images'
- $(document).on('page:init', '.page[data-name="profile-edit-images"]'
- $(document).on('click', '.user-follow-btn'
- $(document).on('infinite', '.profile-landing-page.infinite-scroll-content.view-page'
- $(document).on('page:beforein', '.page[data-name="profile-view"]'
- $(document).on('page:init', '.page[data-name="profile-view"]'
- $(document).on('ptr:refresh', '.profile-landing-page.view-page.ptr-content'
- async function renderProfileData(cachedData, userId)
- function populateUsersPosts(data)
- store.getters.getUserPathUpdated.onUpdated