__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/**
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
((Joomla, document) => {
/**
* Javascript to insert the link
* View element calls jSelectContact when a contact is clicked
* jSelectContact creates the link tag, sends it to the editor,
* and closes the select frame.
*/
window.jSelectMenuItem = (id, title, uri, object, link, lang) => {
// eslint-disable-next-line no-console
console.warn('Method jSelectMenuItem() is deprecated. Use postMessage() instead.');
let thislang = '';
if (!Joomla.getOptions('xtd-menus')) {
// Something went wrong!
return;
}
// eslint-disable-next-line prefer-destructuring
const editor = Joomla.getOptions('xtd-menus').editor;
if (lang !== '') {
thislang = '&lang=';
}
const tag = `<a href="${uri + thislang + lang}">${title}</a>`;
// Insert the link in the editor
if (window.parent.Joomla.editors.instances[editor].getSelection()) {
window.parent.Joomla.editors.instances[editor].replaceSelection(`<a href="${uri + thislang + lang}">${window.parent.Joomla.editors.instances[editor].getSelection()}</a>`);
} else {
window.parent.Joomla.editors.instances[editor].replaceSelection(tag);
}
// Close the modal
if (window.parent.Joomla.Modal && window.parent.Joomla.Modal.getCurrent()) {
window.parent.Joomla.Modal.getCurrent().close();
}
};
// Get the elements
document.querySelectorAll('.select-link').forEach(element => {
// Listen for click event
element.addEventListener('click', event => {
event.preventDefault();
const functionName = event.target.getAttribute('data-function');
if (functionName === 'jSelectMenuItem' && window[functionName]) {
// Used in xtd_contacts
window[functionName](event.target.getAttribute('data-id'), event.target.getAttribute('data-title'), event.target.getAttribute('data-uri'), null, null, event.target.getAttribute('data-language'));
} else if (window.parent[functionName]) {
// Used in com_menus
window.parent[functionName](event.target.getAttribute('data-id'), event.target.getAttribute('data-title'), null, null, event.target.getAttribute('data-uri'), event.target.getAttribute('data-language'), null);
}
// Close the modal
if (window.parent.Joomla.Modal && window.parent.Joomla.Modal.getCurrent()) {
window.parent.Joomla.Modal.getCurrent().close();
}
});
});
})(Joomla, document);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admin-item-edit.js | File | 4.02 KB | 0664 |
|
| admin-item-edit.min.js | File | 2.91 KB | 0664 |
|
| admin-item-edit.min.js.gz | File | 1.04 KB | 0664 |
|
| admin-item-edit_container.js | File | 1.21 KB | 0664 |
|
| admin-item-edit_container.min.js | File | 620 B | 0664 |
|
| admin-item-edit_container.min.js.gz | File | 407 B | 0664 |
|
| admin-item-edit_modules.js | File | 5.2 KB | 0664 |
|
| admin-item-edit_modules.min.js | File | 3.05 KB | 0664 |
|
| admin-item-edit_modules.min.js.gz | File | 1.02 KB | 0664 |
|
| admin-item-modal.js | File | 771 B | 0664 |
|
| admin-item-modal.min.js | File | 637 B | 0664 |
|
| admin-item-modal.min.js.gz | File | 400 B | 0664 |
|
| admin-items-modal.js | File | 2.53 KB | 0664 |
|
| admin-items-modal.min.js | File | 1.46 KB | 0664 |
|
| admin-items-modal.min.js.gz | File | 587 B | 0664 |
|
| admin-menus-default.js | File | 638 B | 0664 |
|
| admin-menus-default.min.js | File | 501 B | 0664 |
|
| admin-menus-default.min.js.gz | File | 361 B | 0664 |
|
| default-batch-body.js | File | 689 B | 0664 |
|
| default-batch-body.min.js | File | 402 B | 0664 |
|
| default-batch-body.min.js.gz | File | 299 B | 0664 |
|