fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [15897]


From: nelson . guerra
Subject: [Fmsystem-commits] [15897]
Date: Wed, 26 Oct 2016 01:10:08 +0000 (UTC)

Revision: 15897
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15897
Author:   nelson224
Date:     2016-10-26 01:10:08 +0000 (Wed, 26 Oct 2016)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/property/js/portico/import_components.js

Modified: branches/dev-syncromind-2/property/js/portico/import_components.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/import_components.js  
2016-10-26 01:09:52 UTC (rev 15896)
+++ branches/dev-syncromind-2/property/js/portico/import_components.js  
2016-10-26 01:10:08 UTC (rev 15897)
@@ -99,11 +99,11 @@
                var oArgs = {menuaction: 
'property.uiimport_components.import_component_files'};
                var requestUrl = phpGWLink('index.php', oArgs, true);
                
-               if ($('#excel_files').val() === '')
+               /*if ($('#excel_files').val() === '')
                {
                        alert('no file selected');
                        return false;
-               }
+               }*/
                
                if ($('#location_item_id').val() === '')
                {
@@ -123,9 +123,14 @@
                }
                
                var form = document.forms.namedItem("form_files");
-               var file_data = $('#excel_files').prop('files')[0];
                var form_data = new FormData(form);
-               form_data.append('file', file_data);
+               
+               if ($('#excel_files').val() !== '')
+               {
+                       var file_data = $('#excel_files').prop('files')[0];     
+                       form_data.append('file', file_data);
+               }
+               
                form_data.append('attribute_name_component_id', 
$('#attribute_name_component_id').val());
                form_data.append('location_code', $('#location_code').val());
                form_data.append('location_item_id', 
$('#location_item_id').val());




reply via email to

[Prev in Thread] Current Thread [Next in Thread]