airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [01/10] airavata-php-gateway git commit: AIRAVATA-1397 File size detection for opt. input files
Date Thu, 19 Jan 2017 19:50:34 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop fc04148bd -> bfd2c06da


AIRAVATA-1397 File size detection for opt. input files


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

Branch: refs/heads/develop
Commit: 65ef21b2a8bdaf3d3d32d1faf917554fea45c6ba
Parents: 4ece55f
Author: Marcus Christie <machristie@apache.org>
Authored: Tue Jan 10 16:03:28 2017 -0500
Committer: Marcus Christie <machristie@apache.org>
Committed: Tue Jan 10 16:03:28 2017 -0500

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/65ef21b2/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 92c54e0..d939f7d 100755
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -830,7 +830,7 @@ class ExperimentUtilities
         if($appInterface->hasOptionalFileInputs){
             echo '<div>
                 <label>Optional Input Files</label>
-                <input type="file" id="optInputFiles" name="optInputFiles[]" multiple
onchange="javascript:updateList()" >
+                <input type="file" class="file-input" id="optInputFiles" name="optInputFiles[]"
multiple onchange="javascript:updateList()" >
                 <div id="optFileList"></div>
             </div>';
         }
@@ -870,7 +870,7 @@ class ExperimentUtilities
             CommonUtilities::print_error_message('AiravataSystemException!<br><br>'
. $ase->getMessage());
         }
 
-        if(Config::get('pga_config.airavata')["data-sharing-enabled"]){
+        if(Config::get('pga_config.airavata')["data-sharing-enabled"] && $expId){
             ExperimentUtilities::share_experiment($expId, json_decode($share));
         }
 


Mime
View raw message