芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/chocholayucatan.gob.mx/media/system/js/fields/color-field-adv-init.js
/** * @copyright (C) 2016 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt */ !(function(document, $) { "use strict"; function initMinicolorsField (event) { $(event.target).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', position: $(this).attr('data-position') || 'default', swatches: $(this).attr('data-colors') ? $(this).attr('data-colors').split(",") : [], theme: 'bootstrap' }); }); } /** * Initialize at an initial page load */ document.addEventListener("DOMContentLoaded", initMinicolorsField); /** * Initialize when a part of the page was updated */ document.addEventListener("joomla:updated", initMinicolorsField); })(document, jQuery);