dsg
INSERT INTO `cp_filehtml` (`id`,`modul`,`app`,`path`,`type`,`cat`,`file_name`,`content`) VALUES ('466','profile','1','u2/creator','0','js','view-user-profile.js--','$(document).on(\\\\\\\'click\\\\\\\', \\\\\\\'.user-follow-btn\\\\\\\', async function () {\r\n const followButton = $(this)\r\n const isFollowing = followButton.text() === \\\\\\\'Following\\\\\\\'\r\n\r\n // change the button text\r\n followButton.text(isFollowing ? \\\\\\\'Follow\\\\\\\' : \\\\\\\'Following\\\\\\\')\r\n const response = await maybeFollowUser(followButton.attr(\\\\\\\'data-user-id\\\\\\\'))\r\n\r\n if (response && response.success) {\r\n store.dispatch(\\\\\\\'updateUserDetails\\\\\\\', {\r\n external: true\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(\\\'click\\\', \\\'.user-follow-btn\\\', async function () {
    const followButton = $(this)
    const isFollowing = followButton.text() === \\\'Following\\\'

    // change the button text
    followButton.text(isFollowing ? \\\'Follow\\\' : \\\'Following\\\')
    const response = await maybeFollowUser(followButton.attr(\\\'data-user-id\\\'))

    if (response && response.success) {
        store.dispatch(\\\'updateUserDetails\\\', {
            external: true
        })
    }
})
Array
(
)
Add JS Function Name