CoreFiles by mySites.guru
color-field-adv-init.js23 lines, 654 bytes, from Joomla_3.9.13-Stable-Full_Package.zip
Raw History Compare with 3.9.12
md5
a0a29d1f7b9570beb5600e905e18a405
sha1
deebd735ced79a2a490dbb87b77a38601f8074da
sha256
59f518258110726821952ca02f10730d0e96796ebd09b7201e04d5a9a8e450c2
jQuery(function ($){
	initMinicolors();
	$('body').on('subform-row-add', initMinicolors);

	function initMinicolors(event, container)
	{
		container = container || document;

		$(container).find('.minicolors').each(function() {
			var $this = $(this);
			var format = $this.data('validate') === 'color' ? 'hex' : $this.data('format') || 'hex';

			$this.minicolors({
				control: $this.data('control') || 'hue',
				format: format === 'rgba' ? 'rgb' : format,
				keywords: $this.data('keywords') || '',
				opacity: format === 'rgba',
				position: $this.data('position') || 'default',
				theme: $this.data('theme') || 'bootstrap',
			});
		});
	}
});

The same content is in 94 releases, Joomla 3.8.12-rc to 3.10.12. See them all, or every version of this file.