Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 662DC200C8B for ; Mon, 22 May 2017 22:19:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 64AAD160BBF; Mon, 22 May 2017 20:19:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AB587160BAD for ; Mon, 22 May 2017 22:19:12 +0200 (CEST) Received: (qmail 76439 invoked by uid 500); 22 May 2017 20:19:11 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 76430 invoked by uid 99); 22 May 2017 20:19:11 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 May 2017 20:19:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C1FB2DFC2E; Mon, 22 May 2017 20:19:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: scnakandala@apache.org To: commits@airavata.apache.org Message-Id: <6cbfdc4a9a9f4e42b471a50e6dcbbecb@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: airavata-php-gateway git commit: fixing bug Date: Mon, 22 May 2017 20:19:11 +0000 (UTC) archived-at: Mon, 22 May 2017 20:19:13 -0000 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 Authored: Mon May 22 16:19:08 2017 -0400 Committer: scnakandala 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);