HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/citycomm-feed-importer/admin/tdm-admin-script.js
jQuery(document).ready(function($){
    $('.tdm-color-field').wpColorPicker();

    if($('select#select_post_type').val() == 'product'){
        $('.produtc_option').show();
    }

    // Import Feed now
    /*
    $('button#import_now').on('click', function() {
      $('span.message').css('color','');
      event.preventDefault();
          $.ajax({
            type: 'POST',
            url: ajaxurl,
            data: {
                action: 'citycomm_import_import_now',
            },
            success: function (response) {
              console.log('importato');
              $('span.message').text('');
              $('span.message').append('Articoli importati con successo');
              $('span.message').css('color','green');
            },
            error: function (response) {
                console.log(response);
                $('span.message').text('');
                $('span.message').append('Import Fallito');
            }
        });

      }); */

});