????

Your IP : 18.219.23.38


Current Path : /home/thenclexdoctor.com/public_html/public/assets/default/js/parts/
Upload File :
Current File : /home/thenclexdoctor.com/public_html/public/assets/default/js/parts/text_lesson.min.js

(function ($) {
  "use strict";

  $('body').on('change', '#readLessonSwitch', function (e) {
    e.preventDefault();
    var $this = $(this);
    var course_id = $this.attr('data-course-id');
    var lesson_id = $this.attr('data-lesson-id');
    var status = this.checked;
    $this.addClass('loadingbar primary').prop('disabled', true);
    var data = {
      item: 'text_lesson_id',
      item_id: lesson_id,
      status: status
    };
    $.post('/course/' + course_id + '/learningStatus', data, function (result) {
      $.toast({
        heading: '',
        text: learningToggleLangSuccess,
        bgColor: '#43d477',
        textColor: 'white',
        hideAfter: 10000,
        position: 'bottom-right',
        icon: 'success'
      });
    })["catch"](function (err) {
      $.toast({
        heading: '',
        text: learningToggleLangError,
        bgColor: '#f63c3c',
        textColor: 'white',
        hideAfter: 10000,
        position: 'bottom-right',
        icon: 'error'
      });
    });
  });
})(jQuery);

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...