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

Warning: file_get_contents(/home/u340524018/domains/agniaga.com/public_html/sub/u2/creator/event-view.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\\\', \\\'#favourite_event\\\', async function () {
    // get the event id from the button
    const eventId = $(this).attr(\\\'data-event-id\\\');
    const isFavourite = $(this).hasClass(\\\'favourite\\\');

    // optmisitically update the UI
    if (isFavourite) {
        $(this).removeClass(\\\'favourite\\\')
        $(this).innerHTML = `<i class=\\\"f7-icons\\\">heart</i> Favourite`
    } else {
        $(this).addClass(\\\'favourite\\\')
        $(this).innerHTML = `<i class=\\\"f7-icons\\\">heart_fill</i> Favourite`
    }

    // call the API to favourite the event
    await maybeFavoriteEvent(eventId);
})
Array
(
)
Add JS Function Name