Sindbad~EG File Manager

Current Path : /proc/142261/cwd/plugins/redux-framework/redux-core/assets/js/redux/
Upload File :
Current File : //proc/142261/cwd/plugins/redux-framework/redux-core/assets/js/redux/init-fields.js

/* global redux */

(function ( $ ) {
	'use strict';

	$.redux = $.redux || {};

	$.redux.initFields = function () {
		$( '.redux-group-tab:visible' ).find( '.redux-field-init:visible' ).each(
			function () {
				let tr;
				let th;

				const type = $( this ).attr( 'data-type' );

				if ( 'undefined' !== typeof redux.field_objects && redux.field_objects[type] && redux.field_objects[type] ) {
					redux.field_objects[type].init();
				}

				if ( ! redux.customizer && $( this ).hasClass( 'redux_remove_th' ) ) {
					tr = $( this ).parents( 'tr:first' );
					th = tr.find( 'th:first' );

					if ( th.html() && th.html().length > 0 ) {
						$( this ).prepend( th.html() );
						$( this ).find( '.redux_field_th' ).css( 'padding', '0 0 10px 0' );
					}

					$( this ).parent().attr( 'colspan', '2' );

					th.remove();
				}
			}
		);
	};
})( jQuery );

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists