HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: /home4/cca63905/.trash/wp-content/plugins/yith-woocommerce-compare/plugin-fw/assets/js/wp-pages.js
/**
 * This file belongs to the YIT Plugin Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

jQuery( function ( $ ) {
    var wrap    = $( '.yith-plugin-fw-wp-page-wrapper' ),
        notices = $( 'div.updated, div.error, div.notice' );

    // prevents the WC message for changes when leaving the panel page
    $( '.yith-plugin-fw-wp-page-wrapper .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' );

    // prevent moving notices withing the tab in WP Pages and move them into the wrapper
    notices.addClass( 'inline' );
    if ( wrap.length ) {
        wrap.prepend( notices );
    }

} );