|
@@ -155,10 +155,10 @@ function retrieveStateData(page, needInitPagination) {
|
|
|
html += ' <div class="check">';
|
|
|
html += ' <ul>';
|
|
|
if (d.memoCount > 0) {
|
|
|
- html += ' <li><a href="javscript:;" class="memo"><i class="align-middle ml-2 fas fa-fw fa-edit"></i></a></li>';
|
|
|
+ html += ' <li><a href="#" id="memoLink" class="memo"><i id="memoLinkIcon" class="align-middle ml-2 fas fa-fw fa-edit"></i></a></li>';
|
|
|
}
|
|
|
if (d.hasTodaySymptom) {
|
|
|
- html += ' <li><a href="javscript:;" class="symptom"><i class="align-middle ml-2 fas fa-fw fa-user-plus"></i></a></li>';
|
|
|
+ html += ' <li><a href="#" id="symptomLink" class="symptom"><i id="symptomLinkIcon" class="align-middle ml-2 fas fa-fw fa-user-plus"></i></a></li>';
|
|
|
}
|
|
|
html += ' </ul>';
|
|
|
html += ' </div>';
|
|
@@ -307,14 +307,22 @@ $(document).ready(function() {
|
|
|
// $('#reloadIntervalSelect').prop('disabled',false);
|
|
|
// }
|
|
|
|
|
|
- $(document).on("click", ".patients-stats", function() {
|
|
|
+ $(document).on("click", ".patients-stats", function(event) {
|
|
|
+ // alert(event.target.id);
|
|
|
+
|
|
|
var searchText = '<c:out value="${searchText}" />';
|
|
|
var currentPage = $("#pagination .active").children("a").text();
|
|
|
var url = $(this).attr("data-url");
|
|
|
if (searchText !== "") {
|
|
|
url += "&refererSearch="+encodeURIComponent(searchText);
|
|
|
}
|
|
|
- url += "&refererPage="+currentPage;
|
|
|
+ url += "&refererPage="+currentPage;
|
|
|
+ if (event.target.id === "memoLink" || event.target.id === "memoLinkIcon") {
|
|
|
+ url += "#medicalMemoSection"
|
|
|
+ }
|
|
|
+ if (event.target.id === "symptomLink" || event.target.id === "symptomLinkIcon") {
|
|
|
+ url += "#symptomSection"
|
|
|
+ }
|
|
|
location.href = url;
|
|
|
});
|
|
|
|
|
@@ -485,10 +493,10 @@ $(document).ready(function() {
|
|
|
<div class="check">
|
|
|
<ul>
|
|
|
<c:if test="${patient.memoCount > 0}">
|
|
|
- <li><a href="javscript:;" class="memo"><i class="align-middle ml-2 fas fa-fw fa-edit"></i></a></li>
|
|
|
+ <li><a href="#" id="memoLink" class="memo"><i id="memoLinkIcon" class="align-middle ml-2 fas fa-fw fa-edit"></i></a></li>
|
|
|
</c:if>
|
|
|
<c:if test="${patient.hasTodaySymptom}">
|
|
|
- <li><a href="javscript:;" class="symptom"> <i class="align-middle ml-2 fas fa-fw fa-user-plus"></i></a></li>
|
|
|
+ <li><a href="#" id="symptomLink" class="symptom"> <i id="symptomLinkIcon" class="align-middle ml-2 fas fa-fw fa-user-plus"></i></a></li>
|
|
|
</c:if>
|
|
|
</ul>
|
|
|
</div>
|