CoreFiles by mySites.guru
admin-module-edit_assignment.js26 lines, 763 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
b0211ae96844886439e9f3801d8a93bf
sha1
c7d4b7dfc8faae2e72fcf6b3e5662d07d7b93347
sha256
0c0288603b33443a9ec22f0ef049feb120369efb1c3aabf3cfe822a46d34ead8
/**
 * @copyright  Copyright (C) 2005 - 2017 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.