Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 849c6e052 -> 3c850ee52


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/3c850ee5
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/3c850ee5
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/3c850ee5

Branch: refs/heads/develop
Commit: 3c850ee523d74106825e2738cbd2361d9d00e0a9
Parents: 849c6e0
Author: scnakandala <[email protected]>
Authored: Tue May 23 11:22:41 2017 -0400
Committer: scnakandala <[email protected]>
Committed: Tue May 23 11:22:41 2017 -0400

----------------------------------------------------------------------
 app/views/partials/deployment-block.blade.php | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/3c850ee5/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 1dcf883..9932a17 100644
--- a/app/views/partials/deployment-block.blade.php
+++ b/app/views/partials/deployment-block.blade.php
@@ -19,7 +19,7 @@
 </div>
 <div class="form-group required">
     <label class="control-label">Application Compute Host</label>
-    <select name="computeHostId" class="form-control" required readonly>
+    <select name="computeHostId" class="form-control computeHostId" required 
readonly>
         @foreach( $computeResources as $id => $crName)
         <option value="{{ $id }}"
         @if( isset( $deploymentObject) ) @if( $id == 
$deploymentObject->computeHostId) selected @endif @endif>{{ $crName
@@ -160,6 +160,21 @@
 {{--</div>--}}
 <div class="form-group required">
     <label class="control-label">Default Queue Name</label>
-    <select name="defaultQueueName" class="form-control" readonly>
+    <select name="defaultQueueName" class="form-control 
default-queue-name-select" readonly>
     </select>
-</div>
\ No newline at end of file
+</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

Reply via email to