File "yith-update-plugins.min.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/yith-woocommerce-wishlist/plugin-fw/assets/js/yith-update-plugins.min.js
File size: 822 bytes
MIME-type: text/plain
Charset: utf-8

!function(a){a(document).on("click","a.yith-update-link",function(e){var t=a(this),n=t.parent("p");e.preventDefault(),a.ajax({type:"POST",url:yith_plugin_fw.ajaxurl,data:{action:"update-plugin",plugin:t.data("plugin"),slug:t.data("slug"),name:t.data("name"),_ajax_nonce:yith_plugin_fw.ajax_nonce},beforeSend:function(){n.text(yith_plugin_fw.l10n.updating.replace("%s",t.data("name"))),n.addClass("yith-updating")},success:function(a){n.removeClass("yith-updating").addClass("yith-updated");var e=n.parent("div");e.removeClass("notice-warning"),result_text="",!0===a.success?(e.addClass("notice-success updated-message").removeClass("update-message"),result_text=yith_plugin_fw.l10n.updated):(e.addClass("notice-error"),result_text=yith_plugin_fw.l10n.failed),n.text(result_text.replace("%s",t.data("name")))}})})}(jQuery);