????

Your IP : 18.219.23.38


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

(function ($) {
  "use strict";

  $('body').on('click', '.js-show-message', function (e) {
    e.preventDefault();
    var $this = $(this);
    var notification_id = $this.attr('data-id');
    var card = $this.closest('.notification-card');
    var title = card.find('.notification-title').text();
    var time = card.find('.notification-time').text();
    var message = card.find('.notification-message').val();
    var modal = $('#messageModal');
    modal.find('.modal-title').text(title);
    modal.find('.modal-time').text(time);
    modal.find('.modal-message').html(message);
    Swal.fire({
      html: modal.html(),
      showCancelButton: false,
      showConfirmButton: false,
      customClass: {
        content: 'p-0 text-left'
      },
      width: '30rem'
    });

    if (!$this.hasClass('seen-at')) {
      $.get('/panel/notifications/' + notification_id + '/saveStatus', function () {
        $this.addClass('seen-at');
        card.find('.notification-badge').remove();
      });
    }
  });
})(jQuery);

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...