Merge remote-tracking branch 'origin/main'

dev
Jonguk. Lim 5 months ago
commit 6e041a8588

@ -152,8 +152,10 @@
<script type="text/javascript"> <script type="text/javascript">
var infoPrefixFields = new FormFields("#infoPrefix-form"); var infoPrefixFields = new FormFields("#infoPrefix-form");
<c:if test="${!empty userInfo}">infoPrefixControl.setData([${userInfo}]);</c:if>
infoPrefixControl.setInfo = obj => { infoPrefixControl.setInfo = obj => {
obj = obj || infoPrefixControl.dataset.getCurrent("item");
infoPrefixFields.set(infoPrefixControl, obj); infoPrefixFields.set(infoPrefixControl, obj);
let create = isEmpty(obj.data.USER_ACNT); let create = isEmpty(obj.data.USER_ACNT);
$("input[name='account']").prop("readonly", !create); $("input[name='account']").prop("readonly", !create);
@ -177,7 +179,8 @@ infoPrefixControl.onModify = (changed) => {
if (["USER_NM", "EML_ADRS", "MBL_TELNO"].filter(e => changed.includes(e)).length < 1) if (["USER_NM", "EML_ADRS", "MBL_TELNO"].filter(e => changed.includes(e)).length < 1)
return; return;
renderinfoPrefixList(); if (window.renderinfoPrefixList)
renderinfoPrefixList();
infoPrefixControl.dataset.setState(); infoPrefixControl.dataset.setState();
} }

@ -30,7 +30,7 @@
<a class="nav-link dropdown-toggle hide-arrow show">${currentUser.name}</a> <a class="nav-link dropdown-toggle hide-arrow show">${currentUser.name}</a>
</div> </div>
<ul class="dropdown-menu dropdown-menu-end" data-bs-popper="static"> <ul class="dropdown-menu dropdown-menu-end" data-bs-popper="static">
<li><a class="dropdown-item" href="pages-account-settings-account.html"> <li><a class="dropdown-item" onclick="currentUserInfo()">
<div class="d-flex"> <div class="d-flex">
<div class="flex-shrink-0 me-3"> <div class="flex-shrink-0 me-3">
<div class="avatar"> <div class="avatar">
@ -63,6 +63,14 @@
<%--/ Navbar --%> <%--/ Navbar --%>
<c:set var="functions" scope="request"> <c:set var="functions" scope="request">
${functions} ${functions}
var currentUserControl = new UserControl();
currentUserControl.prefix = "currentUser";
function currentUserInfo() {
currentUserControl.dataset.clear();
currentUserControl.getInfo({userID: '${currentUser.id}'});
}
function setPageTitle(pageTitle) { function setPageTitle(pageTitle) {
$("#pageTitle").html(pageTitle); $("#pageTitle").html(pageTitle);
} }

Loading…
Cancel
Save