Skip to content
Permalink
Browse files
fixing queue names not updating issue in create app deployment
  • Loading branch information
scnakandala committed Jul 27, 2017
1 parent 3a3059a commit 355cb7586df9ae3b1fecb5297df6a82495d855e7
Showing 1 changed file with 17 additions and 0 deletions.
@@ -71,6 +71,23 @@ $( document).ready( function(){
$(".delete-deploymentId").val( deploymentId )
});

$("#create-app-deployment-block").on('change', '.computeHostId', function () {
var computeResourceCompleteList = $.parseJSON($("#compute-resource-full-objects").val());
$('#create-app-deployment-block .default-queue-name-select').find('option').remove();
for(i = 0; i< computeResourceCompleteList.length; i++){
computeResource = computeResourceCompleteList[i];
if(computeResource.computeResourceId.startsWith(this.value)){
queues = computeResource.batchQueues;
if(queues != null){
for(j=0; j<queues.length; j++){
queue = queues[j];
$("#create-app-deployment-block .default-queue-name-select").append("<option value="+queue.queueName+">"+queue.queueName+"</option>");
}
}
}
}
});

$("#edit-app-deployment-block").on('change', '.computeHostId', function () {
var computeResourceCompleteList = $.parseJSON($("#compute-resource-full-objects").val());
var appDeploymentObject = $.parseJSON($("#app-deployment-object").val());

0 comments on commit 355cb75

Please sign in to comment.