CoreFiles by mySites.guru
admin-menus-default.js37 lines, 964 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
d8476346aba36dce8a6e2c02c092ebeb
sha1
6123ffa871998eecd34e2df844f51a4af7411a63
sha256
75f2b1a568d09f665a6d861e5429d62f1dacd53ead408972cd6071bd32ec957e
/**
 * @copyright  Copyright (C) 2005 - 2018 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.