[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13683]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13683] |
Date: |
Thu, 16 Jul 2015 23:29:52 +0000 |
Revision: 13683
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13683
Author: nelson224
Date: 2015-07-16 23:29:51 +0000 (Thu, 16 Jul 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-07-16
23:02:23 UTC (rev 13682)
+++ branches/dev-syncromind/rental/js/rental/composite.edit.js 2015-07-16
23:29:51 UTC (rev 13683)
@@ -3,12 +3,12 @@
{
$('#type_id').change( function()
{
- filterData('type_id', $(this).val());
+ filterDataLocations('type_id', $(this).val());
});
$('#search_option').change( function()
{
- filterData('search_option', $(this).val());
+ filterDataLocations('search_option', $(this).val());
});
var valuesInputFilter = {};
@@ -16,14 +16,46 @@
{
if ( $.trim($(this).val()) !=
$.trim(valuesInputFilter[i]) )
{
- filterData('query', $(this).val());
+ filterDataLocations('query', $(this).val());
valuesInputFilter[i] = $(this).val();
}
});
+
+
+ $('#contracts_search_option').change( function()
+ {
+ filterDataContracts('search_option', $(this).val());
+ });
+
+ var valuesInputFilter = {};
+ $('#contracts_query').on( 'keyup change', function ()
+ {
+ if ( $.trim($(this).val()) !=
$.trim(valuesInputFilter[i]) )
+ {
+ filterDataContracts('query', $(this).val());
+ valuesInputFilter[i] = $(this).val();
+ }
+ });
+
+ $('#contract_status').change( function()
+ {
+ filterDataContracts('contract_status', $(this).val());
+ });
+
+ $('#contract_type').change( function()
+ {
+ filterDataContracts('contract_type', $(this).val());
+ });
});
- function filterData(param, value)
+ function filterDataLocations(param, value)
{
oTable1.dataTableSettings[1]['ajax']['data'][param] = value;
oTable1.fnDraw();
+ }
+
+ function filterDataContracts(param, value)
+ {
+ oTable2.dataTableSettings[2]['ajax']['data'][param] = value;
+ oTable2.fnDraw();
}
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13683],
Nelson Guerra <=