dsg
INSERT INTO `cp_filehtml` (`id`,`modul`,`app`,`path`,`type`,`cat`,`file_name`,`content`) VALUES ('310','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})');
Copy This

Warning: file_get_contents(/home/u340524018/domains/agniaga.com/public_html/sub/u2/creator/view-user-profile.js-): Failed to open stream: No such file or directory in /home/u340524018/domains/agniaga.com/public_html/sub/u2/cp/inc.filehtml.php on line 319
$(document).on(\'infinite\', \'.profile-landing-page.infinite-scroll-content.view-page\', async function (e) {
    if (isFetchingPosts) return

    const activeTab = document.querySelector(\'.profile-tabs .tab-link-active\')
    const activeTabId = activeTab.id

    if (!activeTabId || activeTabId === \'my-garage\') return

    const getterFunc = activeTabId === \'my-posts\' ? \'getUserPosts\' : \'getUserTags\'

    isFetchingPosts = true

    if (activeTabId === \'my-posts\') {
        currentPostPage++
        if (currentPostPage <= totalPostPages) {
            await store.dispatch(getterFunc, {
                user_id: userId,
                page: currentPostPage
            })
            isFetchingPosts = false
        }
    } else {
        currentFPostPage++

        if (currentFPostPage <= totalFPostPages) {
            await store.dispatch(getterFunc, {
                user_id: userId,
                page: currentFPostPage
            })
            isFetchingPosts = false
        }
    }
})
Array
(
)
Add JS Function Name