fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13786]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13786]
Date: Thu, 27 Aug 2015 00:08:58 +0000

Revision: 13786
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13786
Author:   nelson224
Date:     2015-08-27 00:08:57 +0000 (Thu, 27 Aug 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/rental/js/rental/contract.edit.js

Modified: branches/dev-syncromind/rental/js/rental/contract.edit.js
===================================================================
--- branches/dev-syncromind/rental/js/rental/contract.edit.js   2015-08-27 
00:08:37 UTC (rev 13785)
+++ branches/dev-syncromind/rental/js/rental/contract.edit.js   2015-08-27 
00:08:57 UTC (rev 13786)
@@ -109,6 +109,28 @@
        
        
/******************************************************************************/
        
+       $('#document_search_option').change( function() 
+       {
+               filterDataDocument('search_option', $(this).val());
+       });
+
+       var previous_document_query = '';
+       $('#document_query').on( 'keyup change', function () 
+       {
+               if ( $.trim($(this).val()) != $.trim(previous_document_query) ) 
+               {
+                       filterDataDocument('search', {'value': $(this).val()});
+                       previous_document_query = $(this).val();
+               }
+       });
+
+       $('#document_type_search').change( function() 
+       {
+               filterDataDocument('document_type', $(this).val());
+       });
+       
+       
/******************************************************************************/
+       
        get_composite_data = function()
        {
                if (set_composite_data  === 0)
@@ -180,6 +202,12 @@
        oTable4.fnDraw();
 }
 
+function filterDataDocument(param, value)
+{
+       oTable8.dataTableSettings[8]['ajax']['data'][param] = value;
+       oTable8.fnDraw();
+}
+
 
/******************************************************************************/
 
 addComposite = function(oArgs, parameters){
@@ -256,7 +284,25 @@
        }, data, 'POST', 'JSON');
 };
 
+downloadComposite = function(oArgs){
 
+       if(!confirm("This will take some time..."))
+       {
+               return false;
+       }
+       
+       var requestUrl = phpGWLink('index.php', oArgs);
+
+       requestUrl += '&search_option=' + $('#composite_search_options').val();
+       requestUrl += '&search=' + $('#composite_query').val();
+       requestUrl += '&furnished_status=' + $('#furnished_status').val();
+       requestUrl += '&is_active=' + $('#is_active').val();
+       requestUrl += '&has_contract=' + $('#has_contract').val();
+
+       window.open(requestUrl,'_self');
+};
+
+
 addParty = function(oArgs, parameters){
     
        var oTT = TableTools.fnGetInstance( 'datatable-container_4' );




reply via email to

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