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 bug
Date Mon, 22 May 2017 20:19:11 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop a929fd210 -> 944c23ba3


fixing bug


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

Branch: refs/heads/develop
Commit: 944c23ba3bd9f25557a11c72726ecca8bcdf0ad7
Parents: a929fd2
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Mon May 22 16:19:08 2017 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Mon May 22 16:19:08 2017 -0400

----------------------------------------------------------------------
 app/views/partials/experiment-queue-block.blade.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/944c23ba/app/views/partials/experiment-queue-block.blade.php
----------------------------------------------------------------------
diff --git a/app/views/partials/experiment-queue-block.blade.php b/app/views/partials/experiment-queue-block.blade.php
index 3917981..7a6e578 100644
--- a/app/views/partials/experiment-queue-block.blade.php
+++ b/app/views/partials/experiment-queue-block.blade.php
@@ -155,14 +155,14 @@
         getQueueData(selectedQueue);
     });
 
-    function nodeCountOnKeyUp(nodeCount, cpuCount){
+    function nodeCountOnKeyUp(nodeCount, cpuCount, cpusPerNode){
         var nodeCountVal = parseInt(nodeCount.val());
         if(nodeCountVal > 0){
             cpuCount.val(nodeCountVal*cpusPerNode);
         }
     }
 
-    function cpuCountOnKeyUp(nodeCount, cpuCount){
+    function cpuCountOnKeyUp(nodeCount, cpuCount, cpusPerNode){
         var cpuCountVal = parseInt(cpuCount.val());
         if(cpuCountVal > 0){
             nodeCount.val(Math.ceil(cpuCountVal/cpusPerNode));
@@ -257,8 +257,8 @@
                 var nodeCount=$("#node-count");
                 var cpuCount=$("#cpu-count");
                 if(cpusPerNode > 0){
-                    nodeCount.keyup(nodeCountOnKeyUp(nodeCount, cpuCount));
-                    cpuCount.keyup(cpuCountOnKeyUp(nodeCount, cpuCount));
+                    nodeCount.keyup(nodeCountOnKeyUp(nodeCount, cpuCount, cpusPerNode));
+                    cpuCount.keyup(cpuCountOnKeyUp(nodeCount, cpuCount, cpusPerNode));
                 }else{
                     nodeCount.unbind('keyup', nodeCountOnKeyUp);
                     cpuCount.unbind('keyup', cpuCountOnKeyUp);


Mime
View raw message