CoreFiles by mySites.guru
admin-item-modal.js23 lines, 703 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
d9e7db4792d44073344a893738145239
sha1
266fb77685f1120cfca03face7f0f03420eb3e7e
sha256
e9e5233f0412b81ce904e74873340223ea3037fb4708b673f8fac78b8f489292
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @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) {
  'use strict';

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

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