fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13888]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13888]
Date: Sat, 12 Sep 2015 00:08:28 +0000

Revision: 13888
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13888
Author:   nelson224
Date:     2015-09-12 00:08:28 +0000 (Sat, 12 Sep 2015)
Log Message:
-----------


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

Modified: branches/dev-syncromind/rental/js/rental/composite.edit.js
===================================================================
--- branches/dev-syncromind/rental/js/rental/composite.edit.js  2015-09-12 
00:08:12 UTC (rev 13887)
+++ branches/dev-syncromind/rental/js/rental/composite.edit.js  2015-09-12 
00:08:28 UTC (rev 13888)
@@ -42,6 +42,16 @@
                        filterDataContracts('contract_status', $(this).val());
                });
                
+               var previous_status_date;
+               $("#status_date").on('keyup change', function ()
+               {
+                       if ( $.trim($(this).val()) != 
$.trim(previous_status_date) ) 
+                       {
+                               filterDataContracts('status_date', 
$(this).val());
+                               previous_status_date = $(this).val();
+                       }
+               });
+       
                $('#contract_type').change( function() 
                {
                        filterDataContracts('contract_type', $(this).val());
@@ -70,4 +80,21 @@
        {
                var amount = $.number( oData[key], decimalPlaces, 
decimalSeparator, thousandsSeparator ) + ' ' + currency_suffix;
                return amount;
-       }
\ No newline at end of file
+       }
+       
+       downloadContracts = function(oArgs){
+
+               if(!confirm("This will take some time..."))
+               {
+                       return false;
+               }
+
+               var requestUrl = phpGWLink('index.php', oArgs);
+
+               requestUrl += '&search_option=' + 
$('#contracts_search_options').val();
+               requestUrl += '&search=' + $('#contracts_query').val();
+               requestUrl += '&contract_type=' + $('#contract_type').val();
+               requestUrl += '&contract_status=' + $('#contract_status').val();
+
+               window.open(requestUrl,'_self');
+       };
\ No newline at end of file




reply via email to

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