mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-22 07:54:11 -05:00
Improve the dashboard javascript comments
This commit is contained in:
parent
57170cd6d4
commit
e94764a5c7
1 changed files with 5 additions and 1 deletions
6
resources/assets/js/dashboard.js
vendored
6
resources/assets/js/dashboard.js
vendored
|
@ -302,6 +302,7 @@ function editListInit() {
|
||||||
filterInputInit();
|
filterInputInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// initialize edit item functionality
|
||||||
function editItemInit() {
|
function editItemInit() {
|
||||||
const $editItem = $("#edit-item"),
|
const $editItem = $("#edit-item"),
|
||||||
$submit = $("#submit"),
|
$submit = $("#submit"),
|
||||||
|
@ -646,6 +647,7 @@ function editItemInit() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// initialize the user profile image functionality
|
||||||
function userProfileImageInit() {
|
function userProfileImageInit() {
|
||||||
const $form = $("#user-profile-image"),
|
const $form = $("#user-profile-image"),
|
||||||
$upload = $("#profile-image-upload"),
|
$upload = $("#profile-image-upload"),
|
||||||
|
@ -727,6 +729,7 @@ function userProfileImageInit() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// initialize the user profile update functionality
|
||||||
function userProfileUpdateInit() {
|
function userProfileUpdateInit() {
|
||||||
const $form = $("#user-profile-update"),
|
const $form = $("#user-profile-update"),
|
||||||
$submit = $form.find(".submit-button"),
|
$submit = $form.find(".submit-button"),
|
||||||
|
@ -805,6 +808,7 @@ function userProfileUpdateInit() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// initialize the user password update functionality
|
||||||
function userPasswordUpdateInit() {
|
function userPasswordUpdateInit() {
|
||||||
const $form = $("#user-password-update"),
|
const $form = $("#user-password-update"),
|
||||||
$submit = $form.find(".submit-button"),
|
$submit = $form.find(".submit-button"),
|
||||||
|
@ -904,7 +908,7 @@ function userPasswordUpdateInit() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// run once the document is ready
|
// run the respective initialization functions for each form on the current page
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if ($("#edit-list").length) {
|
if ($("#edit-list").length) {
|
||||||
editListInit();
|
editListInit();
|
||||||
|
|
Loading…
Reference in a new issue