HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/coolswim/wp-content/plugins/wpml-sticky-links/res/js/scripts.js
/*globals ajaxurl, wpml_sticky_links_ajxloaderimg, data */

var wpml_sticky_links_ajax_loader_img = data.wpml_sticky_links_ajxloaderimg;

jQuery(function ($) {
    var saveButton = jQuery('#icl_save_sl_options').find('#save');
    var sticky_links = sticky_links || {};

    sticky_links.save_options = function (event) {

        if (typeof (event.preventDefault) !== 'undefined') {
            event.preventDefault();
        } else {
            event.returnValue = false;
        }

        saveButton.prop('disabled', true)
        $(this).after(wpml_sticky_links_ajax_loader_img);
        var form = $(this).closest('form');
        $.ajax({
            type: "POST",
            url: ajaxurl,
            data: "action=wpml_sticky_links_save_options&" + form.serialize(),
            success: function () {
                saveButton.prop('disabled', false)
                saveButton.next().fadeOut();
            }
        });
        return false;

    };

    saveButton.on('click', sticky_links.save_options);

});