[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13787]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13787] |
Date: |
Thu, 27 Aug 2015 00:09:11 +0000 |
Revision: 13787
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13787
Author: nelson224
Date: 2015-08-27 00:09:10 +0000 (Thu, 27 Aug 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/rental/js/rental/contract.view.js
Modified: branches/dev-syncromind/rental/js/rental/contract.view.js
===================================================================
--- branches/dev-syncromind/rental/js/rental/contract.view.js 2015-08-27
00:08:57 UTC (rev 13786)
+++ branches/dev-syncromind/rental/js/rental/contract.view.js 2015-08-27
00:09:10 UTC (rev 13787)
@@ -1,12 +1,9 @@
-var link_not_included_composites = null;
var link_included_composites = null;
var set_composite_data = 0;
-var link_not_included_parties = null;
var link_included_parties = null;
var set_parties_data = 0;
-var link_not_included_price_items = null;
var link_included_price_items = null;
var set_price_data = 0;
@@ -20,70 +17,10 @@
$(document).ready(function()
{
-
- $('#composite_search_options').change( function()
- {
- filterDataComposite('search_option', $(this).val());
- });
-
- var previous_composite_query = '';
- $('#composite_query').on( 'keyup change', function ()
- {
- if ( $.trim($(this).val()) != $.trim(previous_composite_query)
)
- {
- filterDataComposite('search', {'value': $(this).val()});
- previous_composite_query = $(this).val();
- }
- });
-
- $('#furnished_status').change( function()
- {
- filterDataComposite('furnished_status', $(this).val());
- });
-
- $('#is_active').change( function()
- {
- filterDataComposite('is_active', $(this).val());
- });
-
- $('#has_contract').change( function()
- {
- filterDataComposite('has_contract', $(this).val());
- });
-
-
/******************************************************************************/
-
- $('#party_search_options').change( function()
- {
- filterDataParty('search_option', $(this).val());
- });
-
- var previous_party_query = '';
- $('#party_query').on( 'keyup change', function ()
- {
- if ( $.trim($(this).val()) != $.trim(previous_party_query) )
- {
- filterDataParty('search', {'value': $(this).val()});
- previous_party_query = $(this).val();
- }
- });
-
- $('#party_type').change( function()
- {
- filterDataParty('party_type', $(this).val());
- });
-
- $('#active').change( function()
- {
- filterDataParty('active', $(this).val());
- });
-
-
/******************************************************************************/
-
$('#invoice_id').change( function()
{
- oTable7.dataTableSettings[7]['ajax']['data']['invoice_id'] =
$('#invoice_id').val();
- JqueryPortico.updateinlineTableHelper(oTable7);
+ oTable4.dataTableSettings[4]['ajax']['data']['invoice_id'] =
$('#invoice_id').val();
+ JqueryPortico.updateinlineTableHelper(oTable4);
});
/******************************************************************************/
@@ -125,8 +62,8 @@
{
if (set_parties_data === 0)
{
-
oTable3.dataTableSettings[3]['oFeatures']['bServerSide'] = true;
- JqueryPortico.updateinlineTableHelper(oTable3,
link_included_parties);
+
oTable2.dataTableSettings[2]['oFeatures']['bServerSide'] = true;
+ JqueryPortico.updateinlineTableHelper(oTable2,
link_included_parties);
set_parties_data = 1;
}
@@ -136,8 +73,8 @@
{
if (set_price_data === 0)
{
-
oTable5.dataTableSettings[5]['oFeatures']['bServerSide'] = true;
- JqueryPortico.updateinlineTableHelper(oTable5,
link_included_price_items);
+
oTable3.dataTableSettings[3]['oFeatures']['bServerSide'] = true;
+ JqueryPortico.updateinlineTableHelper(oTable3,
link_included_price_items);
set_price_data = 1;
}
@@ -147,8 +84,8 @@
{
if (set_invoice_data === 0)
{
-
oTable7.dataTableSettings[7]['ajax']['data']['invoice_id'] =
$('#invoice_id').val();
- JqueryPortico.updateinlineTableHelper(oTable7);
+
oTable4.dataTableSettings[4]['ajax']['data']['invoice_id'] =
$('#invoice_id').val();
+ JqueryPortico.updateinlineTableHelper(oTable4);
set_invoice_data = 1;
}
@@ -157,20 +94,8 @@
/******************************************************************************/
-function filterDataComposite(param, value)
-{
- oTable2.dataTableSettings[2]['ajax']['data'][param] = value;
- oTable2.fnDraw();
-}
-
-function filterDataParty(param, value)
-{
- oTable4.dataTableSettings[4]['ajax']['data'][param] = value;
- oTable4.fnDraw();
-}
-
function filterDataDocument(param, value)
{
- oTable8.dataTableSettings[8]['ajax']['data'][param] = value;
- oTable8.fnDraw();
+ oTable5.dataTableSettings[5]['ajax']['data'][param] = value;
+ oTable5.fnDraw();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13787],
Nelson Guerra <=