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 6D2D3200C32 for ; Wed, 1 Feb 2017 14:36:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6BCFA160B44; Wed, 1 Feb 2017 13:36:33 +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 6CBAB160B6A for ; Wed, 1 Feb 2017 14:36:32 +0100 (CET) Received: (qmail 79904 invoked by uid 500); 1 Feb 2017 13:36:31 -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 79444 invoked by uid 99); 1 Feb 2017 13:36:31 -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; Wed, 01 Feb 2017 13:36:31 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 191DEE0B56; Wed, 1 Feb 2017 13:36:31 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: machristie@apache.org To: commits@airavata.apache.org Date: Wed, 01 Feb 2017 13:36:38 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [09/21] airavata-php-gateway git commit: AIRAVATA-1397 edit experiment: add updateList function archived-at: Wed, 01 Feb 2017 13:36:33 -0000 AIRAVATA-1397 edit experiment: add updateList function updateList function, which displays a list of optional upload files selected, was not there on the experiemnt edit page (was only on experiment create page). 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/561fbe30 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/561fbe30 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/561fbe30 Branch: refs/heads/dreg-gateway Commit: 561fbe3027d83782917732dabcb8327e1c0da85e Parents: 0edd8bd Author: Marcus Christie Authored: Thu Jan 19 14:41:35 2017 -0500 Committer: Marcus Christie Committed: Thu Jan 19 14:41:35 2017 -0500 ---------------------------------------------------------------------- app/views/experiment/edit.blade.php | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/561fbe30/app/views/experiment/edit.blade.php ---------------------------------------------------------------------- diff --git a/app/views/experiment/edit.blade.php b/app/views/experiment/edit.blade.php index cbefee3..db21068 100755 --- a/app/views/experiment/edit.blade.php +++ b/app/views/experiment/edit.blade.php @@ -111,5 +111,16 @@ } }); }); + + updateList = function() { + var input = document.getElementById('optInputFiles'); + var output = document.getElementById('optFileList'); + + output.innerHTML = '
    '; + for (var i = 0; i < input.files.length; ++i) { + output.innerHTML += '
  • ' + input.files.item(i).name + '
  • '; + } + output.innerHTML += '
'; + } @stop