CoreFiles by mySites.guru
admin-module-edit_assignment.js26 lines, 763 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
7e9435514bb4763890457a676cfd01f5
sha1
a81702b75c8b6f8ea67a10ea951ab8b347e8e431
sha256
c3a65136a757123171085e4874f75101ea0d47d0b41c3a0d0b7137ccaa0f73e2
/**
 * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

(function(Joomla) {
	"use strict";

	Joomla.menuHide = function(value) {
		if (value == 0 || value == '-') {
			document.getElementById('menuselect-group').style.display = 'none';
		} else {
			document.getElementById('menuselect-group').style.display = 'block';
		}
	};

	document.addEventListener('DOMContentLoaded', function() {
		Joomla.menuHide(document.getElementById('jform_assignment').value);

		document.getElementById('jform_assignment').addEventListener('change', function(event) {
			Joomla.menuHide(event.target.value);
		});
	});
})(Joomla);

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