INSERT INTO `cp_filehtml` (`id`,`modul`,`app`,`path`,`type`,`cat`,`file_name`,`content`) VALUES ('487','garage','1','u2/creator','0','js','---','$(document).on(\\\\\\\\\\\\\\\'page:init\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\'.page[data-name=\\\\\\\\\\\\\\\"profile-garage-vehicle-add\\\\\\\\\\\\\\\"]\\\\\\\\\\\\\\\', async function (e) {\r\n const toggleOwnedToDatePicker = (e) => {\r\n const ownedToInput = document.querySelector(\\\\\\\\\\\\\\\'input[name=\\\\\\\\\\\\\\\"vehicle_owned_to\\\\\\\\\\\\\\\"]\\\\\\\\\\\\\\\')\r\n const ownedToBContainer = document.querySelector(\\\\\\\\\\\\\\\'#owned-to-block\\\\\\\\\\\\\\\')\r\n\r\n const value = e.target.value\r\n\r\n if (value === \\\\\\\\\\\\\\\"current\\\\\\\\\\\\\\\") { // Current Vehicle\r\n ownedToBContainer.style.display = \\\\\\\\\\\\\\\'none\\\\\\\\\\\\\\\'\r\n ownedToInput.value = \\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\'\r\n } else {\r\n ownedToBContainer.style.display = \\\\\\\\\\\\\\\'block\\\\\\\\\\\\\\\'\r\n }\r\n }\r\n\r\n $(document).on(\\\\\\\\\\\\\\\'change\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\'select[name=\\\\\\\\\\\\\\\"vehicle_ownership\\\\\\\\\\\\\\\"]\\\\\\\\\\\\\\\', toggleOwnedToDatePicker)\r\n\r\n // input vehicle_image\r\n $(document).on(\\\\\\\\\\\\\\\'change\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\'input[name=\\\\\\\\\\\\\\\"vehicle_image\\\\\\\\\\\\\\\"]\\\\\\\\\\\\\\\', function (e) {\r\n const file = e.target.files[0]\r\n const reader = new FileReader()\r\n\r\n reader.onload = function (e) {\r\n document.querySelector(\\\\\\\\\\\\\\\'.custom-file-upload label\\\\\\\\\\\\\\\').style.backgroundImage = `url(\\\\\\\\\\\\\\\'${e.target.result}\\\\\\\\\\\\\\\')`\r\n document.querySelector(\\\\\\\\\\\\\\\'.custom-file-upload label\\\\\\\\\\\\\\\').style.backgroundSize = \\\\\\\\\\\\\\\'cover\\\\\\\\\\\\\\\'\r\n }\r\n\r\n reader.readAsDataURL(file)\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