airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: fixing queue names not updating issue in create app deployment
Date Thu, 27 Jul 2017 16:26:12 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 2a1394395 -> e7d14075a


fixing queue names not updating issue in create app deployment


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

Branch: refs/heads/develop
Commit: e7d14075ac36b4c5744418effe33ae6b270b75dc
Parents: 2a13943
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Thu Jul 27 12:26:11 2017 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Thu Jul 27 12:26:11 2017 -0400

----------------------------------------------------------------------
 public/js/deployment.js | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/e7d14075/public/js/deployment.js
----------------------------------------------------------------------
diff --git a/public/js/deployment.js b/public/js/deployment.js
index 3a4476b..371d619 100644
--- a/public/js/deployment.js
+++ b/public/js/deployment.js
@@ -71,23 +71,23 @@ $( document).ready( function(){
         	$(".delete-deploymentId").val( deploymentId )
         });
 
-	updateQueueNamesForCreateAppDep();
+	updateQueueNamesForCreateAppDep($('#create-app-deployment-block .computeHostId').filter(":selected").val());
 	$("#create-app-deployment-block").on('change', '.computeHostId', function () {
-		updateQueueNamesForCreateAppDep();
+		updateQueueNamesForCreateAppDep(this.value);
 	});
 
-	updateQueueNamesForEditAppDep();
+	updateQueueNamesForEditAppDep($('#edit-app-deployment-block .computeHostId').filter(":selected").val());
 	$("#edit-app-deployment-block").on('change', '.computeHostId', function () {
-		updateQueueNamesForEditAppDep();
+		updateQueueNamesForEditAppDep(this.value);
 	});
 });
 
-function updateQueueNamesForCreateAppDep(){
+function updateQueueNamesForCreateAppDep(selectedVal){
 	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)){
+		if(computeResource.computeResourceId.startsWith(selectedVal)){
 			queues = computeResource.batchQueues;
 			if(queues != null){
 				for(j=0; j<queues.length; j++){
@@ -99,13 +99,13 @@ function updateQueueNamesForCreateAppDep(){
 	}
 }
 
-function updateQueueNamesForEditAppDep(){
+function updateQueueNamesForEditAppDep(selectedVal){
 	var computeResourceCompleteList = $.parseJSON($("#compute-resource-full-objects").val());
 	var appDeploymentObject = $.parseJSON($("#app-deployment-object").val());
 	$('#edit-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)){
+		if(computeResource.computeResourceId.startsWith(selectedVal)){
 			queues = computeResource.batchQueues;
 			if(queues != null){
 				for(j=0; j<queues.length; j++){


Mime
View raw message