Repository: airavata-php-gateway Updated Branches: refs/heads/develop 3c850ee52 -> d4ec413a3
WIP Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/d4ec413a Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/d4ec413a Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/d4ec413a Branch: refs/heads/develop Commit: d4ec413a31bec4198675ef388336cb060de7a732 Parents: 3c850ee Author: scnakandala <[email protected]> Authored: Tue May 23 11:24:34 2017 -0400 Committer: scnakandala <[email protected]> Committed: Tue May 23 11:24:34 2017 -0400 ---------------------------------------------------------------------- app/views/partials/deployment-block.blade.php | 17 +---------------- public/js/deployment.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d4ec413a/app/views/partials/deployment-block.blade.php ---------------------------------------------------------------------- diff --git a/app/views/partials/deployment-block.blade.php b/app/views/partials/deployment-block.blade.php index 9932a17..a930d1c 100644 --- a/app/views/partials/deployment-block.blade.php +++ b/app/views/partials/deployment-block.blade.php @@ -162,19 +162,4 @@ <label class="control-label">Default Queue Name</label> <select name="defaultQueueName" class="form-control default-queue-name-select" readonly> </select> -</div> - -<script> - $( document ).ready(function() { - $(".computeHostId").on('change', function () { - var computeResourceCompleteList = $.parseJSON($("#compute-resource-full-objects").val()); - for(var i = 0; i< computeResourceCompleteList.length; i++){ - computeResource = computeResourceCompleteList[i]; - if(computeResource.computeResourceId.startsWith(this.value)){ - $queues = computeResource.batchQueues; - console.log($queues); - } - } - }); - }); -</script> \ No newline at end of file +</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d4ec413a/public/js/deployment.js ---------------------------------------------------------------------- diff --git a/public/js/deployment.js b/public/js/deployment.js index 375b5a7..8fdb1f1 100644 --- a/public/js/deployment.js +++ b/public/js/deployment.js @@ -70,6 +70,17 @@ $( document).ready( function(){ $(".delete-deployment-id").html( $(this).parent().parent().find(".deployment-id").html() ); $(".delete-deploymentId").val( deploymentId ) }); + + $(".computeHostId").on('change', function () { + var computeResourceCompleteList = $.parseJSON($("#compute-resource-full-objects").val()); + for(var i = 0; i< computeResourceCompleteList.length; i++){ + computeResource = computeResourceCompleteList[i]; + if(computeResource.computeResourceId.startsWith(this.value)){ + $queues = computeResource.batchQueues; + console.log($queues); + } + } + }); }); function clearInputs( elem, removeJustReadOnly){
