CoreFiles by mySites.guru
admin-item-modal.js21 lines, 583 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
b91cf7c49854515bd7f06971dbf325ed
sha1
aa2f62db3da6ce020c5b132586725a347b715002
sha256
656849278a57eb816744949e2d07887c61b38c0bb1c9247bf46bfe316022c430
/**
 * @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, 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.