fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15741]


From: nelson . guerra
Subject: [Fmsystem-commits] [15741]
Date: Wed, 28 Sep 2016 00:11:53 +0000 (UTC)

Revision: 15741
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15741
Author:   nelson224
Date:     2016-09-28 00:11:53 +0000 (Wed, 28 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-28 00:11:37 UTC (rev 15740)
+++ branches/dev-syncromind-2/property/js/portico/import_components.js  
2016-09-28 00:11:53 UTC (rev 15741)
@@ -297,11 +297,6 @@
                        return false;
                }
                
-               if (isSendingData())
-               {
-                       return false;
-               }
-               
                var data = {
                        "step": 4,
                        'attribute_name_component_id': 
$('#attribute_name_component_id').val()
@@ -317,18 +312,14 @@
                var column_name_building_part = false;
                var column_component_id = false;
                var new_attribute = true;
-               
-               if (columns.length == 0)
-               {
-                       alert('Select some columns to continue');
-                       return false;
-               }
 
+               var _count = 0; 
                columns.each(function (i, obj)
                {
                        var code = obj.id.split('_');
                        if (obj.value != '')
                        {
+                               _count++;
                                if (obj.value === 'new_column') 
                                {
                                        if (!valid_new_attribute(code[1]))
@@ -358,6 +349,12 @@
                        }
                });
                
+               if (_count == 0)
+               {
+                       alert('Select some columns to continue');
+                       return false;
+               }
+               
                if (!new_attribute)
                {
                        return;
@@ -367,15 +364,20 @@
                        alert('Select Building part');
                        return;
                }
+               if (!column_component_id)
+               {
+                       alert('Select attribute name for Component ID');
+                       return;
+               }
                if (!column_name_building_part)
                {
                        alert('Select Name of the Building part');
                        return;
                }
-               if (!column_component_id)
+               
+               if (isSendingData())
                {
-                       alert('Select attribute name for Component ID');
-                       return;
+                       return false;
                }
                
                $('.processing-columns').show();
@@ -552,21 +554,3 @@
                return true;
        }
 }
-
-       /*
-this.local_DrawCallback1 = function (oTable)
-{
-       var api = oTable.api();
-       
-       api.$('tr').click( function () 
-       {
-        if ( $(this).hasClass('selected') ) {
-                       var selected = api.rows(this).data()[0];
-                       console.log(selected.location_code);
-                       $('#tab-content').responsiveTabs('activate', 1);
-                       $(this).addClass('selected row_selected');
-        }
-
-       });
-};
-*/
\ No newline at end of file




reply via email to

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