INSERT INTO `cp_filehtml` (`id`,`modul`,`app`,`path`,`type`,`cat`,`file_name`,`content`) VALUES ('325','discover','1','u2/creator','0','js','event-view.js-','$(document).on(\\\'click\\\', \\\'#favourite_event\\\', async function () {\r\n // get the event id from the button\r\n const eventId = $(this).attr(\\\'data-event-id\\\');\r\n const isFavourite = $(this).hasClass(\\\'favourite\\\');\r\n\r\n // optmisitically update the UI\r\n if (isFavourite) {\r\n $(this).removeClass(\\\'favourite\\\')\r\n $(this).innerHTML = `heart Favourite`\r\n } else {\r\n $(this).addClass(\\\'favourite\\\')\r\n $(this).innerHTML = `heart_fill Favourite`\r\n }\r\n\r\n // call the API to favourite the event\r\n await maybeFavoriteEvent(eventId);\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