[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13882]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13882] |
Date: |
Fri, 11 Sep 2015 23:14:22 +0000 |
Revision: 13882
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13882
Author: nelson224
Date: 2015-09-11 23:14:22 +0000 (Fri, 11 Sep 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/rental/js/rental/party.edit.js
Modified: branches/dev-syncromind/rental/js/rental/party.edit.js
===================================================================
--- branches/dev-syncromind/rental/js/rental/party.edit.js 2015-09-11
10:24:35 UTC (rev 13881)
+++ branches/dev-syncromind/rental/js/rental/party.edit.js 2015-09-11
23:14:22 UTC (rev 13882)
@@ -1,28 +1,6 @@
$(document).ready(function()
-{
- $("#date_start").change(function(){
-
- var date_start = $("#date_start").val();
- var billing_start = $("#billing_start_date").val();
- if(!billing_start)
- {
- $("#billing_start_date").val(date_start);
- }
- });
-
- $("#date_end").change(function(){
-
- var date_end = $("#date_end").val();
- var billing_end_date = $("#billing_end_date").val();
- if(!billing_end_date)
- {
- $("#billing_end_date").val(date_end);
- }
- });
-
-
/******************************************************************************/
-
+{
$('#contract_search_options').change( function()
{
filterDataContract('search_option', $(this).val());
@@ -43,6 +21,16 @@
filterDataContract('contract_status', $(this).val());
});
+ var previous_status_date;
+ $("#status_date").on('keyup change', function ()
+ {
+ if ( $.trim($(this).val()) != $.trim(previous_status_date) )
+ {
+ filterDataContract('status_date', $(this).val());
+ previous_status_date = $(this).val();
+ }
+ });
+
$('#contract_type').change( function()
{
filterDataContract('contract_type', $(this).val());
@@ -156,4 +144,21 @@
{
var amount = $.number( oData[key], decimalPlaces, decimalSeparator,
thousandsSeparator ) + ' ' + area_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=' + $('#contract_search_options').val();
+ requestUrl += '&search=' + $('#contract_query').val();
+ requestUrl += '&contract_type=' + $('#contract_type').val();
+ requestUrl += '&contract_status=' + $('#contract_status').val();
+
+ window.open(requestUrl,'_self');
+};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13882],
Nelson Guerra <=