Skip to content
Snippets Groups Projects
Commit 962b65a2 authored by Matthew Williams's avatar Matthew Williams
Browse files

Fix frontend deactivate function

parent 664aea92
No related branches found
No related tags found
1 merge request!22Merge UC92 into Master
......@@ -61,15 +61,6 @@ loggingAction.logEvent(TransactionType.PATIENT_LIST_VIEW, loggedInMID, 0, "");
<form action="viewReport.jsp" method="post" name="myform">
<table class="display fTable" id="patientList" align="center">
<script type="text/javascript">
var editButtonId = "";
function showButton(){
document.getElementById(editButtonId).style.display="none";
return;
}
</script>
<thead>
<tr class="">
......@@ -91,25 +82,9 @@ loggingAction.logEvent(TransactionType.PATIENT_LIST_VIEW, loggedInMID, 0, "");
String editButtonName = "button" + index;
%>
<script type="text/javascript">
row_id = "<%=idName%>";
function hideRow(rowId){
rowId = "<%=idName%>";
document.getElementById(rowId).style.display="none";
return;
}
editButtonId = "<%=editButtonName%>";
</script>
<tr id=<%=idName%>>
<tr>
<td>
<a style="text-decoration: none;">
<input type=button value="DeActivate" onclick="javascript:hideRow(row_id);">
</a>
<input type=button value="Deactivate" class="deactivate">
</td>
<td >
......@@ -133,6 +108,12 @@ loggingAction.logEvent(TransactionType.PATIENT_LIST_VIEW, loggedInMID, 0, "");
</tbody>
</table>
</form>
<script type="text/javascript">
$('.deactivate').on('click', function() {
$(this).closest('tr').hide();
});
</script>
<br />
<br />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment