CoreFiles by mySites.guru
admin-item-edit_container.js22 lines, 671 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
993be8447b984d3b340e945a0135b166
sha1
9fa79dd209f8f8389b4e085cacae107fddbb72a4
sha256
512ad447fe69637fe712568543dd2cbd49ac79a475dc64561625c75ea00e0ff3
/**
 * @copyright  Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
(function() {
	"use strict";

	jQuery(document).ready(function ($) {
		var propagate = function () {
			var $this = $(this);
			var sub   = $this.closest('li').find('.treeselect-sub [type="checkbox"]');
			sub.prop('checked', this.checked);
			if ($this.val() == 1)
				sub.each(propagate);
			else
				sub.attr('disabled', this.checked ? 'disabled' : null);
		};
		$('.treeselect')
			.on('click', '[type="checkbox"]', propagate)
			.find('[type="checkbox"]:checked').each(propagate);
	});
})();

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