HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/admin-widget-settings.js.tar
httpdocs/wp-content/plugins/google-analytics-for-wordpress/assets/js/admin-widget-settings.js000064400000003346151546430430035164 0ustar00var/www/vhosts/uyarreklam.com.tr(
  function ($) {

    // Add Color Picker to all inputs that have 'color-field' class.
    $(function () {
      init_color_picker();
      init_multiselect();
      $(document).on('widget-updated widget-added', function (e) {
        init_color_picker();
        init_multiselect();
      });
      $(document).on('change', '.monsterinsights-save-on-change', function () {
        save_and_refresh_form($(this).closest('.widget'));
      });
    });

    function init_color_picker() {
      var timeout;
      $('#widgets-right .monsterinsights-color-field').wpColorPicker({
        change: function (event, ui) {
          if (timeout) {
            clearTimeout(timeout);
          }
          timeout = setTimeout(function () {
            $(event.target).trigger('change');
          }, 300);
        },
      });
    }

    function save_and_refresh_form(widget) {
      if (wpWidgets && 'undefined' !== typeof wpWidgets.save) {
        wpWidgets.save(widget, 0, 0);
      }
    }

    function init_multiselect() {
      if (!jQuery.fn.select300) {
        return;
      }
      $('#widgets-right .monsterinsights-multiselect').select300({
        ajax: {
          type: 'POST',
          url: ajaxurl,
          delay: 250,
          width: 'resolve',
          data: function (params) {
            var taxonomy = $(this).data('taxonomy');
            return {
              taxonomy: taxonomy,
              keyword: params.term,
              action: 'monsterinsights_get_terms',
              nonce: monsterinsights_pp.nonce,
            };
          },
          processResults: function (data) {
            return {
              results: data.data
            };
          },
          dataType: 'json'
        }
      });

    }

  }
)(jQuery);