|
@@ -724,7 +724,7 @@ function retrieveMemoData() {
|
|
|
contents = datas.forEach(function(d) {
|
|
|
html += "<tr>";
|
|
|
html += "<td>" + gridDateFormatter(d.recordedDate) + "</td>";
|
|
|
- if (d.canModify) {
|
|
|
+ if (d.canModify && d.recordedById === "${data._SES_ID}") {
|
|
|
const clickEventListener ='handleModifyMemo("'+d.idx+'","'+d.recordedDate+'")';
|
|
|
html += "<td><pre id='memo_"+d.idx+"' class='contentsEdit' onClick='"+clickEventListener+"'>" + d.contents + "</pre></td>";
|
|
|
}
|
|
@@ -732,7 +732,7 @@ function retrieveMemoData() {
|
|
|
html += "<td><pre>" + d.contents + "</pre></td>";
|
|
|
}
|
|
|
html += "<td>" + d.recordedByName + "</td>";
|
|
|
- html += "<td>" + gridDateFormatter(d.createDate) + "</td>";
|
|
|
+ html += "<td>" + gridDateFormatter(d.updateDate) + "</td>";
|
|
|
html += "</tr>";
|
|
|
});
|
|
|
};
|
|
@@ -1816,13 +1816,14 @@ $(document).ready(function() {
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<c:set var="memoTotal" value="${memoResult.size()}" />
|
|
|
+ <c:set var="loginId" value="${data._SES_ID}" />
|
|
|
<c:choose>
|
|
|
<c:when test="${memoTotal > 0}">
|
|
|
<c:forEach var="d" items="${memoResult}">
|
|
|
<tr>
|
|
|
<td><c:out value="${d.recordedDateFormatted}" /></td>
|
|
|
<c:choose>
|
|
|
- <c:when test="${d.canModify}">
|
|
|
+ <c:when test="${d.canModify && d.recordedById.equals(loginId)}">
|
|
|
<td><pre id='memo_${d.idx}' class='contentsEdit' onClick='handleModifyMemo("${d.idx}", "${d.recordedDate}")'>${d.contents}</pre></td>
|
|
|
</c:when>
|
|
|
<c:otherwise>
|
|
@@ -1830,7 +1831,7 @@ $(document).ready(function() {
|
|
|
</c:otherwise>
|
|
|
</c:choose>
|
|
|
<td><c:out value="${d.recordedByName}" /></td>
|
|
|
- <td><c:out value="${d.createDateFormatted}" /></td>
|
|
|
+ <td><c:out value="${d.updateDateFormatted}" /></td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
|
</c:when>
|