403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.6
Web Server : nginx/1.24.0
System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64
User : root ( 0)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/php/wit-crm/modules/loyalty/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/php/wit-crm/modules/loyalty/assets/js/mange_transation.js
(function($) {  
  "use strict";  
  var transationServerParams = {  
    "client": "[name='client_filter[]']",
    "reference": "[name='reference[]']",
};

var table_transation = $('table.table-table_transation');
initDataTable(table_transation, admin_url+'loyalty/table_transation', ['undefine'], ['undefine'], transationServerParams);

$.each(transationServerParams, function(i, obj) {
    $('#client_filter' + obj).on('change', function() {  
        table_transation.DataTable().ajax.reload()
        .columns.adjust()
        .responsive.recalc();
    });

    $('#reference' + obj).on('change', function() {  
        table_transation.DataTable().ajax.reload()
        .columns.adjust()
        .responsive.recalc();
    });
});


var redeemlogServerParams = {  
    "client": "[name='client_filter_rd[]']",
};

var table_rd_log = $('table.table-table_redeem_log');
initDataTable(table_rd_log, admin_url+'loyalty/table_rd_log', ['undefine'], ['undefine'], redeemlogServerParams);

$.each(redeemlogServerParams, function(i, obj) {
    $('#client_filter_rd' + obj).on('change', function() {  
        table_rd_log.DataTable().ajax.reload()
        .columns.adjust()
        .responsive.recalc();
    });

});
})(jQuery);

/**
 * { new transation }
 */
function new_transation() {
    "use strict";
    $('#transation_modal').modal('show');

    $('select[id="client"]').val('').change();
    $('select[id="type"]').val('').change();
    $('input[id="loyalty_point"]').val('');
    $('textarea[id="note"]').val('');
    $('.add-title').removeClass('hide');
    $('.edit-title').addClass('hide');
    $('#additional_transation').html('');
}

Youez - 2016 - github.com/yon3zu
LinuXploit