fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16455]


From: nelson . guerra
Subject: [Fmsystem-commits] [16455]
Date: Fri, 17 Mar 2017 23:58:59 -0400 (EDT)

Revision: 16455
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16455
Author:   nelson224
Date:     2017-03-17 23:58:59 -0400 (Fri, 17 Mar 2017)
Log Message:
-----------


Added Paths:
-----------
    branches/dev-syncromind-2/property/js/portico/report.edit.js

Copied: branches/dev-syncromind-2/property/js/portico/report.edit.js (from rev 
16447, branches/dev-syncromind-2/property/js/portico/tts.add.js)
===================================================================
--- branches/dev-syncromind-2/property/js/portico/report.edit.js                
                (rev 0)
+++ branches/dev-syncromind-2/property/js/portico/report.edit.js        
2017-03-18 03:58:59 UTC (rev 16455)
@@ -0,0 +1,32 @@
+$(document).ready(function ()
+{
+       //$('.processing').hide();
+       
+       $('#btn_get_columns').click( function()
+       {
+               var oArgs = {menuaction: 'property.uireport.get_columns'};
+               var requestUrl = phpGWLink('index.php', oArgs, true);
+               var data = {"view": $('#view').val()};
+
+               $('.processing').show();
+               $.ajax({
+                       type: 'GET',
+                       url: requestUrl,
+                       dataType: 'json',
+                       data: data
+               }).always(function () {
+                       //$('.processing').hide();
+               }).done(function (result) {
+                       //console.log(result);
+                       build_options_columns(result);
+               });             
+       });
+       
+});
+
+function build_options_columns(data)
+{
+       $.each(data, function(key, object) {
+               $('#container_columns').append('<input type="checkbox" 
value="'+ object.name +'"/> ' + object.name + '<br />');
+       });     
+}
\ No newline at end of file




reply via email to

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