__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
(function () {
'use strict';
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
(function () {
/**
* 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.jSelectContact = function (id, title, catid, object, link, lang) {
var hreflang = '';
if (!Joomla.getOptions('xtd-contacts')) {
// Something went wrong
window.parent.Joomla.Modal.getCurrent().close();
return false;
}
var _Joomla$getOptions = Joomla.getOptions('xtd-contacts'),
editor = _Joomla$getOptions.editor;
if (lang !== '') {
hreflang = "hreflang = \"" + lang + "\"";
}
var tag = "<a " + hreflang + " href=\"" + link + "\">" + title + "</a>";
window.parent.Joomla.editors.instances[editor].replaceSelection(tag);
window.parent.Joomla.Modal.getCurrent().close();
return true;
};
document.addEventListener('DOMContentLoaded', function () {
// Get the elements
var elements = document.querySelectorAll('.select-link');
for (var i = 0, l = elements.length; l > i; i += 1) {
// Listen for click event
elements[i].addEventListener('click', function (event) {
event.preventDefault();
var functionName = event.target.getAttribute('data-function');
if (functionName === 'jSelectContact') {
// Used in xtd_contacts
window[functionName](event.target.getAttribute('data-id'), event.target.getAttribute('data-title'), null, null, event.target.getAttribute('data-uri'), event.target.getAttribute('data-language'), null);
} else {
// 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);
}
if (window.parent.Joomla.Modal) {
window.parent.Joomla.Modal.getCurrent().close();
}
});
}
});
})();
})();
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admin-contacts-modal-es5.js | File | 2.26 KB | 0664 |
|
| admin-contacts-modal-es5.min.js | File | 1.25 KB | 0664 |
|
| admin-contacts-modal-es5.min.js.gz | File | 565 B | 0664 |
|
| admin-contacts-modal.js | File | 2.04 KB | 0664 |
|
| admin-contacts-modal.min.js | File | 1.19 KB | 0664 |
|
| admin-contacts-modal.min.js.gz | File | 550 B | 0664 |
|
| contacts-list-es5.js | File | 797 B | 0664 |
|
| contacts-list-es5.min.js | File | 535 B | 0664 |
|
| contacts-list-es5.min.js.gz | File | 349 B | 0664 |
|
| contacts-list.js | File | 696 B | 0664 |
|
| contacts-list.min.js | File | 486 B | 0664 |
|
| contacts-list.min.js.gz | File | 321 B | 0664 |
|