[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15534]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [15534] |
Date: |
Tue, 30 Aug 2016 01:09:10 +0000 (UTC) |
Revision: 15534
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15534
Author: nelson224
Date: 2016-08-30 01:09:10 +0000 (Tue, 30 Aug 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-08-29 23:38:28 UTC (rev 15533)
+++ branches/dev-syncromind-2/property/js/portico/import_components.js
2016-08-30 01:09:10 UTC (rev 15534)
@@ -147,11 +147,17 @@
});
});
- $('#sheet_id').on('change', function ()
+ $('#step2').on('click', function ()
{
var oArgs = {menuaction:
'property.uiimport_components.import_component_files'};
var requestUrl = phpGWLink('index.php', oArgs, true);
+ if ($('#sheet_id').val() == '')
+ {
+ alert('select sheet');
+ return false;
+ }
+
var data = {
"step": 2,
"sheet_id": $('#sheet_id').val(),
@@ -161,29 +167,64 @@
JqueryPortico.execute_ajax(requestUrl,
function(result){
$('#content_lines').html(result);
+
$('#responsiveTabsDemo').responsiveTabs('enable', 1);
+
$('#responsiveTabsDemo').responsiveTabs('activate', 1);
}, data, "GET", "json"
);
});
+
+ $('#step3').on('click', function ()
+ {
+ var oArgs = {menuaction:
'property.uiimport_components.import_component_files'};
+ var requestUrl = phpGWLink('index.php', oArgs, true);
+
+ if (!$('input:radio[name=start_line]:checked').val())
+ {
+ alert('select start line');
+ return false;
+ }
+
+ var data = {
+ "step": 3,
+ "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()
+ };
+ JqueryPortico.execute_ajax(requestUrl,
+ function(result){
+ $('#content_columns').html(result);
+
$('#responsiveTabsDemo').responsiveTabs('enable', 2);
+
$('#responsiveTabsDemo').responsiveTabs('activate', 2);
+ }, data, "GET", "json"
+ );
+ });
+
+ $('#step4').on('click', function ()
+ {
+ var oArgs = {menuaction:
'property.uiimport_components.import_component_files'};
+ var requestUrl = phpGWLink('index.php', oArgs, true);
+
+ var data = {
+ "step": 3,
+ "sheet_id": $('#sheet_id').val(),
+ 'start_line':
$('input:radio[name=start_line]:checked').val(),
+ 'location_code': $('#location_code').val(),
+ 'location_item_id': $('#location_item_id').val()
+ };
+ JqueryPortico.execute_ajax(requestUrl,
+ function(result){
+ $('#content_columns').html(result);
+
$('#responsiveTabsDemo').responsiveTabs('enable', 2);
+
$('#responsiveTabsDemo').responsiveTabs('activate', 2);
+ }, data, "GET", "json"
+ );
+ });
+
});
-function selectStartLine ()
-{
- var oArgs = {menuaction:
'property.uiimport_components.import_component_files'};
- var requestUrl = phpGWLink('index.php', oArgs, true);
- var data = {
- "step": 3,
- "sheet_id": $('#sheet_id').val(),
- 'start_line': $('input:radio[name=start_line]:checked').val(),
- 'location_code': $('#location_code').val(),
- 'location_item_id': $('#location_item_id').val()
- };
- JqueryPortico.execute_ajax(requestUrl,
- function(result){
- $('#content_columns').html(result);
- }, data, "GET", "json"
- );
-};
function getLocations()
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15534],
nelson . guerra <=