You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/02/01 13:36:38 UTC
[09/21] airavata-php-gateway git commit: AIRAVATA-1397 edit
experiment: add updateList function
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 <ma...@apache.org>
Authored: Thu Jan 19 14:41:35 2017 -0500
Committer: Marcus Christie <ma...@apache.org>
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 = '<ul>';
+ for (var i = 0; i < input.files.length; ++i) {
+ output.innerHTML += '<li>' + input.files.item(i).name + '</li>';
+ }
+ output.innerHTML += '</ul>';
+ }
</script>
@stop