CoreFiles by mySites.guru
admin-item-modal.js23 lines, 708 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
e826d1b01ba938bdc181d82a1ce890a1
sha1
cec7db60ddbd1291fa9622a546b0fa8b02cdf511
sha256
3434cc9f3f4dd298eccfcbbc94e3c5808fa85632c86766f73c795ef60b1d631d
/**
* 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=".concat(type);
    }
  };
})(Joomla);

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