b0y-101 Mini Shell


Current Path : E:/wordpress/wp-content/plugins/woocommerce-multilingual/res/js/
File Upload :
Current File : E:/wordpress/wp-content/plugins/woocommerce-multilingual/res/js/trnsl_interface_dialog_warning.js

jQuery(function ($) {

    $(document).on('click', 'input[name="trnsl_interface"]', function () {

        if ( $(this).val() == 0 ) {
            jQuery(function () {
                var dialogBox = jQuery("#wcml-translation-interface-dialog-confirm");
                var buttonsOpts = {};
                buttonsOpts[ dialogBox.find('.cancel-button').val() ] = function () {
                    jQuery(this).dialog("close");
                    jQuery('input[name="trnsl_interface"][value="1"]').prop('checked', true);
                };
                buttonsOpts[ dialogBox.find('.ok-button').val() ] = function () {
                    jQuery(this).dialog("close");
                };

                dialogBox.dialog({
                    resizable: false,
                    draggable: false,
                    height: "auto",
                    width: 600,
                    modal: true,
                    closeOnEscape: false,
                    dialogClass: "otgs-ui-dialog",
                    create: function () {

                    },
                    open: function (event, ui) {
                        jQuery(".ui-dialog-titlebar-close", ui.dialog | ui).hide();
						jQuery('#jquery-ui-style-css').prop('disabled', true);
                    },
                    close: function (event, ui) {
                        jQuery('#jquery-ui-style-css').prop('disabled', false);
                    },
                    buttons : buttonsOpts
                });
            });
        }
    });

});


Copyright © 2019 by b0y-101