AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.192
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/www/lrsys_apps/leo/application/plugins/module_imobles/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/leo/application/plugins/module_imobles/assets/js/neighborhood-list.js
var _url = $("#_url").val();
function filter() {

    // Advanced
    $('#items_per_page').on('change', function (event) {
        event.preventDefault();

        var items = $(this).find('option:selected').val();
        $("input[name=items_per_page]").val(items);

        $('#form-filter').submit();
    });

    // Clear
    $('#filter-clear').on('click', function (event) {
        event.preventDefault();
        $("#clear_filter").val(1);
        $('#form-filter').submit();
    });


    $('body').on('click', '#filter-post', function (event) {
        event.preventDefault();
        $('#form-filter').submit();
    });
    $('body').on('click', '.dropdown-toggle', function (event) {
        event.preventDefault();
        $(".group-data").toggleClass("open");
    });

    $('body').on('click', '.dropdown-toggle', "keydown", function (e) {
        if (e.which == 13 || e.which == 32) {
            e.preventDefault();
            $(".group-data").toggleClass("open");
        }
    });


}


$(function () {
    filter();
});




$(document).ready(function ()
{
    $("#state_id").on('change', function () {
        buscaCity($(this).val(), "0");
    });
    $('#state_id').select2({theme: "bootstrap",
        width: '100%'});
    buscaCity($("#state_id").val(), $("#city_id").data("value"));
});


function buscaCity(state, valor) {
    if (state) {
        $.getJSON($("#_url").val() + 'ajax/city', {state_id: state}, function (j) {
            var options = '<option value="0">' + $("#_msg_select_city").val() + '</option>';
            for (var i = 0; i < j.length; i++) {
                options += '<option value="' + j[i].id + '">' + j[i].city_name + '</option>';
            }

            $('#city_id').html(options);
            $('#city_id').select2({theme: "bootstrap",
                width: '100%'});

            $('#city_id').select2("val", valor);
        });
    } else {
        var options = '<option value="0">' + $("#_msg_select_city").val() + '</option>';

        $('#city_id').html(options);

        $('#city_id').select2({theme: "bootstrap",
            width: '100%'});
        $('#city_id').select2("val", "0");
    }
}




Anon7 - 2022
AnonSec Team