CoreFiles by mySites.guru
admin-menus-default.js37 lines, 964 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
3bc6cfe43d8214db1f57f377d469aae0
sha1
c86d14611e677ce54fae859972f422c9dc3a9672
sha256
7cd9d3f503c2c4ffe1a8cd7504862760466797e185eb610b56fc2768afdfa3ea
/**
 * @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";

	document.addEventListener('DOMContentLoaded', function(){

		if (Joomla.getOptions('menus-default')) {
			var items = Joomla.getOptions('menus-default').items;

			items.forEach(function(item) {
				console.log(item)
				window['jSelectPosition_' + item] = function (name) {
					document.getElementById(item).value = name;
					jQuery(".modal").modal("hide");
				}
			})
		}

		jQuery(".modal").on("hidden.bs.modal", function () {
			setTimeout(function(){
				window.parent.location.reload();
			},1000);
		});
	});
})();

(function (originalFn) {
    Joomla.submitform = function(task, form) {
        originalFn(task, form);
        if (task === "menu.exportXml") {
            document.adminForm.task.value = "";
        }
    };
})(Joomla.submitform);

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