CoreFiles by mySites.guru
admin-item-modal.es6.js23 lines, 694 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
7269a80a45a4afcd851347df9c8831d0
sha1
a33e073a10005b1208cd8ab5a4f8e8545b993c94
sha256
4ecb5897d26cc172b6bfb67181f36d6586dbeed4b42500340694a9da3c715cd1
/**
* 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 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

(Joomla => {
  'use strict';

  Joomla.setMenuType = (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=".concat(type);
    }
  };
})(Joomla);

The same content is in 5 releases, Joomla 4.0.0-alpha8 to 4.0.0-alpha12. See them all, or every version of this file.