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/erp/application/plugins/module_helpdesk/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/erp/application/plugins/module_helpdesk/assets/js/priority-list.js
$(document).ready(function ()
{
    var _url = $("#_url").val();








    var _msg_add_new_priority = $("#_msg_add_new_priority").val();
    var _msg_priority_name = $("#_msg_priority_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-priority row\">\n        <div class=\"col-xs-12\">\n            <div class=\"form-material floating\">\n                <input class=\"form-control\" type=\"text\" id=\"priority_name\" name=\"priority_name\">\n                <label for=\"priority_name\">" + _msg_priority_name + "</label>\n                           </div>\n        </div>\n    </div>\n\n</form>";


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

                    var priority_name_val = $('#priority_name').val();

                    $.post(_url + "module_helpdesk/priority/post/", {name: priority_name_val})
                            .done(function (data) {

                                if (data == 'OK') {
                                    location.reload();
                                } else {
                                    bootbox.alert(data);
                                }

                            });


                }
            }
        },
        show: false
    }
    );





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

        e.preventDefault();

        box.modal('show');


    });


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

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

    });


    $(".edit_priority").click(function (e) {
        e.preventDefault();

        var eid = $(this).data("id");

        // alert(eid);

        var gname = $(this).attr("data-name");





        bootbox.prompt({
            title: _msg_edit,
            value: gname,
            buttons: {
                'cancel': {
                    label: _msg_cancel
                },
                'confirm': {
                    label: _msg_ok
                }
            },
            callback: function (result) {
                if (result === null) {

                } else {
                    // alert(result);
                    $.post(_url + "module_helpdesk/priority/post", {id: eid, name: result})
                            .done(function (data) {
                                if (data == 'OK') {
                                    location.reload();
                                } else {
                                    bootbox.alert(data);
                                };

                            });
                }
            }
        });

    });


});

Anon7 - 2022
AnonSec Team