CoreFiles by mySites.guru
admin-item-edit_modules.js47 lines, 1,456 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
63148be04c79d2abb766638dfd8d52ae
sha1
305b4722ebce7618ddc2a937118194d1c38ee46d
sha256
8bf8c6476257781bd1087240ceaf181525747ed132e0dbd003ada532b8c30304
/**
 * @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() {
	"use strict";

	var options = Joomla.getOptions('menus-edit-modules');

	if (options) {
		window.viewLevels = options.viewLevels;
		window.menuId = parseInt(options.itemId);
	}

	document.addEventListener('DOMContentLoaded', function() {
		document.getElementById("jform_toggle_modules_assigned1").addEventListener("click", function (event) {
			var list = document.querySelectorAll("tr.no");
			list.forEach(function(item) {
				item.style.display = 'table-row';
			});
		});

		document.getElementById("jform_toggle_modules_assigned0").addEventListener("click", function (event) {
			var list = document.querySelectorAll("tr.no");
			list.forEach(function (item) {
				item.style.display = 'none';
			});
		});

		document.getElementById("jform_toggle_modules_published1").addEventListener("click", function (event) {
			var list = document.querySelectorAll(".table tr.unpublished");
			list.forEach(function (item) {
				item.style.display = 'table-row';
			});
		});

		document.getElementById("jform_toggle_modules_published0").addEventListener("click", function (event) {
			var list = document.querySelectorAll(".table tr.unpublished");
			list.forEach(function (item) {
				item.style.display = 'none';
			});
		});
	});
})();

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