fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16293]


From: nelson . guerra
Subject: [Fmsystem-commits] [16293]
Date: Fri, 10 Feb 2017 03:29:58 -0500 (EST)

Revision: 16293
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16293
Author:   nelson224
Date:     2017-02-10 03:29:58 -0500 (Fri, 10 Feb 2017)
Log Message:
-----------


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

Modified: branches/dev-syncromind-2/property/js/portico/generic_document.edit.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/generic_document.edit.js      
2017-02-10 08:29:34 UTC (rev 16292)
+++ branches/dev-syncromind-2/property/js/portico/generic_document.edit.js      
2017-02-10 08:29:58 UTC (rev 16293)
@@ -111,7 +111,7 @@
        oTable0.fnDraw();
 }
 
-function setRelationsComponents(oArgs)
+/*function setRelationsComponents2(oArgs)
 {
        var values = {};
        var related = {};
@@ -131,7 +131,6 @@
                related[obj.value] = obj.value;
        });
        
-       oArgs['location_id'] = $('#location_id').val();
        oArgs['file_id'] = $('#id').val();
        var requestUrl = phpGWLink('index.php', oArgs);
 
@@ -143,7 +142,46 @@
                
        }, data, "POST", "JSON");
 }
+*/
+function setRelationsComponents(oArgs)
+{      
+       var values = {};
+       var related = {};
+       
+       var select_check = $('.components');
+       select_check.each(function (i, obj)
+       {
+               if (obj.checked)
+               {
+                       values[obj.value] = obj.value;
+               }
+       });
+       
+       var select_related = $('.components_related');
+       select_related.each(function (i, obj)
+       {
+               related[obj.value] = obj.value;
+       });
+       
+       if ($('#check_all_types').is(':checked')) 
+       {
+               oArgs['all_types'] = 1;
+       } else {
+               oArgs['location_id'] = $('#location_id').val();
+       }
+       
+       oArgs['file_id'] = $('#id').val();
+       var requestUrl = phpGWLink('index.php', oArgs);
 
+       var data = {"items":values, "related":related};
+       JqueryPortico.execute_ajax(requestUrl, function (result)
+       {
+               JqueryPortico.show_message(0, result);
+               oTable0.fnDraw();
+               
+       }, data, "POST", "JSON");
+}
+
 function setRelationsLocations(oArgs)
 {
        var values = {};




reply via email to

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