CoreFiles by mySites.guru
admin-item-modal.js21 lines, 583 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
bbf91a41af7a01b5d9a0799378b43b13
sha1
44da60e5642d519ab2a7d79e1d9fd97edd90e019
sha256
9385bb652b21d01eeb104c3d427a0efaf5843b8d7562a1ecb7c44149b774e35e
/**
 * @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, document) {
	'use strict';

	Joomla.setMenuType = function(type, tmpl) {
		if (tmpl != '') {
			window.parent.Joomla.submitbutton('item.setType', type);
			window.parent.jQuery('#menuTypeModal').modal('hide');
		}
		else {
			window.location = 'index.php?option=com_menus&view=item&task=item.setType&layout=edit&type=' + type;
		}
	};

})(Joomla, document);

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