CoreFiles by mySites.guru
color-field-adv-init.js23 lines, 705 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
07b8b05d73b332b7ee40244916b9b31b
sha1
3e4fc1b73b3d5c1a8b1a520e1d8df80e9fed3ee6
sha256
4fea1938ad9fc96ee2a6f8759b361eee5f6a3f445118ba56346797f3a69c5547
jQuery(document).ready(function ($){

	function initMinicolors(event, container) {
		$(container || document).find('.minicolors').each(function() {
			$(this).minicolors({
				control: $(this).attr('data-control') || 'hue',
				format: $(this).attr('data-validate') === 'color'
					? 'hex'
					: ($(this).attr('data-format') === 'rgba'
						? 'rgb'
						: $(this).attr('data-format'))
					|| 'hex',
				keywords: $(this).attr('data-keywords') || '',
				opacity: $(this).attr('data-format') === 'rgba' ? true : false || false,
				position: $(this).attr('data-position') || 'default',
				theme: 'bootstrap'
			});
		});
	}

	initMinicolors();
	$(document).on('subform-row-add', initMinicolors);
});

No other release has this exact content. See every version of this file.