golden hour
/var/www/html/wp-content/plugins/yith-woocommerce-zoom-magnifier/plugin-fw/assets/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
codemirror
-
Del
OK
how-to.js
199 B
Del
OK
how-to.min.js
100 B
Del
OK
javascript-md5
-
Del
OK
jquery-tiptip
-
Del
OK
jquery.colorbox.js
29.53 KB
Del
OK
jquery.colorbox.min.js
11.55 KB
Del
OK
metabox.js
5.12 KB
Del
OK
metabox.min.js
2.32 KB
Del
OK
multisite-updater.js
8.67 KB
Del
OK
multisite-updater.min.js
2.1 KB
Del
OK
select2
-
Del
OK
wp-pages.js
2.99 KB
Del
OK
wp-pages.min.js
1.61 KB
Del
OK
yit-cpt-unlimited.js
2.45 KB
Del
OK
yit-cpt-unlimited.min.js
788 B
Del
OK
yit-plugin-panel.js
8.52 KB
Del
OK
yit-plugin-panel.min.js
4.08 KB
Del
OK
yit-wp-pointer.js
3.22 KB
Del
OK
yit-wp-pointer.min.js
1.24 KB
Del
OK
yith-colorpicker.min.js
6.69 KB
Del
OK
yith-dashboard.js
1.5 KB
Del
OK
yith-dashboard.min.js
619 B
Del
OK
yith-date-format.js
1.82 KB
Del
OK
yith-date-format.min.js
1.09 KB
Del
OK
yith-enhanced-select-wc-2.6.js
7.18 KB
Del
OK
yith-enhanced-select-wc-2.6.min.js
2.37 KB
Del
OK
yith-enhanced-select.js
10.27 KB
Del
OK
yith-enhanced-select.min.js
3.54 KB
Del
OK
yith-fields.js
33.29 KB
Del
OK
yith-fields.min.js
18.53 KB
Del
OK
yith-promo.js
745 B
Del
OK
yith-promo.min.js
329 B
Del
OK
yith-system-info.js
2.2 KB
Del
OK
yith-system-info.min.js
1.05 KB
Del
OK
yith-ui.js
8.98 KB
Del
OK
yith-ui.min.js
4.61 KB
Del
OK
yith-update-plugins.js
1.85 KB
Del
OK
yith-update-plugins.min.js
822 B
Del
OK
Edit: metabox.js
/** * This file belongs to the YIT 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 */ ( function ( $ ) { $( '.metaboxes-tab' ).each( function () { var theMetaBox = $( this ), panels = theMetaBox.find( '.tabs-panel' ) panels.hide(); // TODO: check if someone is directly using it, otherwise it could be removed because: 1. it doesn't take into account the possibility to have more than one meta-box in the same page; 2. it's not set anywhere. var activeTab = wpCookies.get( 'active_metabox_tab' ); if ( activeTab == null ) { activeTab = theMetaBox.find( 'ul.metaboxes-tabs li:first-child a' ).attr( 'href' ); } else { activeTab = '#' + activeTab; } theMetaBox.find( activeTab ).show(); theMetaBox.find( '.metaboxes-tabs a' ).on( 'click', function ( e ) { e.preventDefault(); var wrapper = $( this ).parent(), isActive = wrapper.hasClass( 'tabs' ); if ( !isActive ) { var tabID = $( this ).attr( 'href' ); wrapper.addClass( 'tabs' ).siblings( 'li' ).removeClass( 'tabs' ); panels.hide(); $( tabID ).show(); } } ); } ); // TODO: check if someone is directly using it, otherwise it could be removed, since it's not used by the fw. var actPageOptionContainer = $( '#_active_page_options-container' ), actPageOption = actPageOptionContainer.parent().html(); actPageOptionContainer.parent().remove(); $( actPageOption ).insertAfter( '#yit-post-setting .handlediv' ); $( actPageOption ).insertAfter( '#yit-page-setting .handlediv' ); actPageOptionContainer.on( 'click', function () { if ( $( '#_active_page_options' ).is( ":checked" ) ) { $( '#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab' ).css( { 'opacity' : 1, 'pointer-events': 'auto' } ); } else { $( '#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab' ).css( { 'opacity' : 0.5, 'pointer-events': 'none' } ); } } ).trigger( 'click' ); //dependencies handler $( document.body ).on( 'yith-plugin-fw-metabox-init-deps', function () { $( document.body ).trigger( 'yith-plugin-fw-init-radio' ); $( '.metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)' ).each( function () { var t = $( this ); var field = '#' + t.data( 'dep-target' ), dep = '#' + t.data( 'dep-id' ), value = t.data( 'dep-value' ), type = t.data( 'dep-type' ); dependencies_handler( field, dep, value.toString(), type ); $( dep ).on( 'change', function () { dependencies_handler( field, dep, value.toString(), type ); } ).change(); t.addClass( 'yith-plugin-fw-metabox-deps-initialized' ); } ); } ).trigger( 'yith-plugin-fw-metabox-init-deps' ); //Handle dependencies. function dependencies_handler( id, deps, values, type ) { var result = true; if ( typeof ( deps ) == 'string' ) { if ( deps.substr( 0, 6 ) === ':radio' ) { deps = deps + ':checked'; } var depsOn = $( deps ), depsOnType = depsOn.attr( 'type' ), val = depsOn.val(); switch ( depsOnType ){ case 'checkbox': val = depsOn.is( ':checked' ) ? 'yes' : 'no'; break; case 'radio': val = depsOn.find( 'input[type="radio"]' ).filter( ':checked' ).val(); break; } values = values.split( ',' ); for ( var i = 0; i < values.length; i++ ) { if ( val != values[ i ] ) { result = false; } else { result = true; break; } } } var $current_field = $( id ), $current_container = $( id + '-container' ).parent(); var types = type.split( '-' ), j; for ( j in types ) { var current_type = types[ j ]; if ( !result ) { switch ( current_type ) { case 'disable': $current_container.addClass( 'yith-disabled' ); $current_field.attr( 'disabled', true ); break; case 'hide': case 'hideNow': $current_container.hide(); break; case 'hideme': $current_field.hide(); break; case 'fadeInOut': case 'fadeOut': $current_container.hide( 500 ); break; case 'fadeIn': default: $current_container.hide(); } } else { switch ( current_type ) { case 'disable': $current_container.removeClass( 'yith-disabled' ); $current_field.attr( 'disabled', false ); break; case 'hide': case 'hideNow': $current_container.show(); break; case 'hideme': $current_field.show(); break; case 'fadeOut': $current_container.show(); break; case 'fadeInOut': case 'fadeIn': default: $current_container.show( 500 ); } } } } } )( jQuery );
Save