index of
/
home
/
thefkyzp
/
easyloanly.com
/
wp-content
/
plugins
/
easy-wp-smtp
/
assets
/
js
/
File: /home/thefkyzp/easyloanly.com/wp-content/plugins/easy-wp-smtp/assets/js/smtp-notifications.min.js
"use strict";var EasyWPSMTPAdminNotifications=window.EasyWPSMTPAdminNotifications||function(s){var t={$notifications:s("#easy-wp-smtp-notifications"),$nextButton:s("#easy-wp-smtp-notifications .navigation .next"),$prevButton:s("#easy-wp-smtp-notifications .navigation .prev"),$adminBarCounter:s("#wp-admin-bar-easy-wp-smtp-menu .easy-wp-smtp-admin-bar-menu-notification-counter")},a={init:function(){s(a.ready)},ready:function(){a.updateNavigation(),a.events()},events:function(){t.$notifications.on("click",".dismiss",a.dismiss).on("click",".next",a.navNext).on("click",".prev",a.navPrev)},dismiss:function(e){var n;0!==t.$currentMessage.length&&(n={action:"easy_wp_smtp_notification_dismiss",nonce:easy_wp_smtp.nonce,id:t.$currentMessage.data("message-id")},s.post(ajaxurl,n,function(e){e.success&&(1<(e=parseInt(t.$adminBarCounter.text(),10))?t.$adminBarCounter.html("<span>"+--e+"</span>"):t.$adminBarCounter.remove(),0===(e=t.$nextMessage.length<1?t.$prevMessage:t.$nextMessage).length?t.$notifications.remove():(t.$currentMessage.remove(),e.addClass("current"),a.updateNavigation()))}))},navNext:function(e){t.$nextButton.hasClass("disabled")||(t.$currentMessage.removeClass("current"),t.$nextMessage.addClass("current"),a.updateNavigation())},navPrev:function(e){t.$prevButton.hasClass("disabled")||(t.$currentMessage.removeClass("current"),t.$prevMessage.addClass("current"),a.updateNavigation())},updateNavigation:function(){t.$currentMessage=t.$notifications.find(".easy-wp-smtp-notifications-message.current"),t.$nextMessage=t.$currentMessage.next(".easy-wp-smtp-notifications-message"),t.$prevMessage=t.$currentMessage.prev(".easy-wp-smtp-notifications-message"),0===t.$nextMessage.length?t.$nextButton.addClass("disabled"):t.$nextButton.removeClass("disabled"),0===t.$prevMessage.length?t.$prevButton.addClass("disabled"):t.$prevButton.removeClass("disabled")}};return a}((document,window,jQuery));EasyWPSMTPAdminNotifications.init();