HEX
Server: LiteSpeed
System: Linux premium212.web-hosting.com 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64
User: vitanhod (1367)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/vitanhod/vitamine.pk/wp-content/plugins/tenweb-speed-optimizer/assets/js/autoupdate_banner.js
jQuery(document).ready( function(){
    jQuery('.two-set-autoupdate').on('click', function(){
        two_set_autoupdate_data(jQuery(this));
    });
});

function two_set_autoupdate_data(that) {
    two_close_banner();
    let auto_update = '';
    if ( jQuery(that).hasClass('two-enable-autoupdate') ) {
        auto_update = 'enable';
    }
    jQuery.ajax({
        type: 'POST',
        url: two_speed.ajax_url,
        dataType: 'json',
        data: {
            action: 'two_set_autoupdate_from_banner',
            auto_update: auto_update,
            nonce: two_speed.nonce,
        }
    }).success(function ($result) {
        console.log($result);
    });
}