CoreFiles by mySites.guru
color-field-adv-init.js23 lines, 677 bytes, from Joomla_3.10.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha5
md5
5877654a9e4b3d515565ee4865baaf1c
sha1
c0e13ff014a6519574866cc6c3e265483c0c345e
sha256
06ca4faa969cfd555fe5f958042b6e45375d2bc8b22a8cc77525b0d8e8d23fe8
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 8 releases, Joomla 3.10.0-alpha4 to 3.10.0-rc2. See them all, or every version of this file.