Skip to content

Commit

Permalink
Application Edit button on Service modal.
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Jun 22, 2024
1 parent 5cbd6eb commit e8a8dcc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/src/main/webapp/AppServiceList.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<title id="pageTitle">Service Library</title>
<script type="text/javascript" src="js/pages/AppServiceList.js"></script>
<script type="text/javascript" src="js/transversalobject/AppService.js"></script>
<script type="text/javascript" src="js/transversalobject/Application.js"></script>
<script type="text/javascript" src="js/global/autocomplete.js"></script>
</head>
<body>
Expand All @@ -37,6 +38,7 @@
<%@ include file="include/utils/modal-confirmation.html" %>
<%@ include file="include/pages/testdatalib/listTestCase.html"%>
<%@ include file="include/transversalobject/AppService.html" %>
<%@ include file="include/transversalobject/Application.html" %>

<h1 class="page-title-line" id="title">Application Service</h1>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ <h4 class="modal-title" id="editSoapLibraryModalLabel" name="editSoapLibraryFiel
<label class="control-label" for="application" name="applicationField">Application</label>
<div class="input-group col-xs-12">
<select type="text" class="form-control input-sm" name="application" id="application" style="width:100%;"></select>
<span class="input-group-btn">
<button type="button" id="editApplication" class="btn btn-sm btn-default">Edit</button>
</span>
</div>
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions source/src/main/webapp/js/transversalobject/AppService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,12 @@ function appendApplicationListServiceModal(defaultValue) {
var myoption = $('<option></option>').text(defaultValue).val(defaultValue);
$("#editServiceModal [name='application']").append(myoption).trigger('change'); // append the option and update Select2
}

$("#editSoapLibraryModal #editApplication").off("click");
$("#editSoapLibraryModal #editApplication").click(function () {
openModalApplication($("#editSoapLibraryModal #application").val(), "EDIT");
});

}

function appendAppServiceListServiceModal(defaultValue) {
Expand Down

0 comments on commit e8a8dcc

Please sign in to comment.