| Server IP : 104.21.84.107 / Your IP : 104.23.243.197 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/internacionalizacion/media/system/js/ |
Upload File : |
function _extends() {
return _extends = Object.assign ? Object.assign.bind() : function (n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
}
return n;
}, _extends.apply(null, arguments);
}
/**
* @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* A helper to Post a Message
* @param {Object} data
*/
const send = data => {
// Set the message type and send it
data.messageType = data.messageType || 'joomla:content-select';
window.parent.postMessage(data);
};
// Bind the buttons
document.addEventListener('click', event => {
const button = event.target.closest('[data-content-select]');
if (!button) return;
event.preventDefault();
// Extract the data and send
const data = _extends({}, button.dataset);
delete data.contentSelect;
send(data);
});
// Check for "select on load"
window.addEventListener('load', () => {
const data = Joomla.getOptions('content-select-on-load');
if (data) {
send(data);
}
});