[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15562]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [15562] |
Date: |
Fri, 2 Sep 2016 00:33:40 +0000 (UTC) |
Revision: 15562
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15562
Author: nelson224
Date: 2016-09-02 00:33:40 +0000 (Fri, 02 Sep 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-09-02 00:26:41 UTC (rev 15561)
+++ branches/dev-syncromind-2/property/js/portico/import_components.js
2016-09-02 00:33:40 UTC (rev 15562)
@@ -207,12 +207,34 @@
var requestUrl = phpGWLink('index.php', oArgs, true);
var data = {
- "step": 3,
+ "step": 4,
"sheet_id": $('#sheet_id').val(),
'start_line':
$('input:radio[name=start_line]:checked').val(),
+ 'template_id': $('#template_list').val(),
'location_code': $('#location_code').val(),
'location_item_id': $('#location_item_id').val()
};
+
+ data['columns'] = {};
+ data['attrib_names'] = {};
+ data['attrib_data_types'] = {};
+
+ var columns = $('.columns');
+
+ columns.each(function (i, obj)
+ {
+ var code = obj.id.split('_');
+ if (obj.value != '')
+ {
+ if (obj.value === 'new_column')
+ {
+ data['attrib_names'][code[1]] =
$('#name_' + code[1]).val();
+ data['attrib_data_types'][code[1]] =
$('#data_type_' + code[1]).val();
+ }
+ data['columns'][code[1]] = obj.value;
+ }
+ });
+
JqueryPortico.execute_ajax(requestUrl,
function(result){
$('#content_columns').html(result);
@@ -234,7 +256,9 @@
$('#name_'+ column).prop('disabled', false);
} else {
$('#data_type_'+ column).prop('disabled', true);
- $('#name_'+ column).prop('disabled', true);
+ $('#name_'+ column).prop('disabled', true);
+ $('#data_type_'+ column).prop('selectedIndex', 0);
+ $('#name_'+ column).val('');
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15562],
nelson . guerra <=