CoreFiles by mySites.guru
admin-item-modal.es6.js23 lines, 688 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
0cb951c8f64a9d5f988ab889cdec0205
sha1
21b3ba8b2b3b1318dcd76d4cd30eb5b157fd1d12
sha256
dcbd5d4158a43e421b69f3a3f228251191d2123224ff74241e8824065f3fa88c
/**
* 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=${type}`;
    }
  };
})(Joomla);

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