CoreFiles by mySites.guru
admin-field-edit.js25 lines, 766 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
b0adc4bc0ff538d94e36e87a97257048
sha1
6d9d3b97a94386d5e207751ae00ec25aed33945f
sha256
f3c74ea08b19601408eaf067f81cd8ea5a6ae13311f50bcd33265d5f704a01b4
/**
* 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
 */

document.addEventListener('DOMContentLoaded', function () {
  var title = document.getElementById('jform_title');
  title.dpOldValue = title.value;

  title.addEventListener('change', function (event) {
    var label = document.getElementById('jform_label');
    var changedTitle = event.currentTarget;

    if (changedTitle.dpOldValue === label.value) {
      label.value = changedTitle.value;
    }

    changedTitle.dpOldValue = changedTitle.value;
  });
});

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