PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/flavoredfog.co.uk/wp-content/plugins/wp-product-review/assets/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/flavoredfog.co.uk/wp-content/plugins/wp-product-review/assets/js/admin.js |
/* jshint ignore:start */ jQuery(document).ready(function ($) { jQuery(".subo-color-picker").wpColorPicker({ change: function (event, ui) { var color = ui.color.toCSS(); var id = jQuery(this).attr('id').replace('_color_selector', ''); jQuery("#" + id + "_color").val(color); } }); update_nav($("#wppr_top_tabs .wppr-nav-tab:first")); $("#wppr_top_tabs").on('click', '.wppr-nav-tab', function () { update_nav($(this)); return false; }) function update_nav(obj) { var tab = obj.attr('data-tab'); var id = obj.find('a').attr('href'); $('.wppr-nav-tab').removeClass('active'); obj.addClass('active'); $('.wppr-tab-content').hide(); $(id).show(); } }); jQuery("document").ready(function () { jQuery('.cwp_save').on('click', function () { var $btn = jQuery(this); $btn.parent().find('.spinner').addClass('is-active'); $btn.addClass('disabled'); var form_data = jQuery('#wppr-settings').serializeArray() var data = { 'action': 'update_options', 'cwppos_options': form_data }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function (response) { $btn.parent().find('.spinner').removeClass('is-active'); $btn.removeClass('disabled'); }); }); jQuery('.wppr_reset_comment_ratings').on('click', function(e) { e.preventDefault(); var $btn = jQuery(this); $btn.parent().append('<span class="spinner is-active"></span>'); $btn.addClass('disabled'); var form_data = jQuery('#wppr-settings').serializeArray() var data = { 'action': 'reset_comment_ratings', 'cwppos_options': form_data }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function (response) { $btn.parent().find('.spinner').remove(); $btn.removeClass('disabled'); }); }); });