X7ROOT File Manager
Current Path:
/home/notabjze/narcev.com/media/com_contenthistory/js
home
/
notabjze
/
narcev.com
/
media
/
com_contenthistory
/
js
/
ðŸ“
..
📄
admin-compare-compare-es5.js
(1.53 KB)
📄
admin-compare-compare-es5.min.js
(725 B)
📄
admin-compare-compare-es5.min.js.gz
(406 B)
📄
admin-compare-compare.js
(1.38 KB)
📄
admin-compare-compare.min.js
(696 B)
📄
admin-compare-compare.min.js.gz
(391 B)
📄
admin-history-modal-es5.js
(2.7 KB)
📄
admin-history-modal-es5.min.js
(1.48 KB)
📄
admin-history-modal-es5.min.js.gz
(560 B)
📄
admin-history-modal.js
(2.53 KB)
📄
admin-history-modal.min.js
(1.46 KB)
📄
admin-history-modal.min.js.gz
(562 B)
📄
admin-history-versions-es5.js
(420 B)
📄
admin-history-versions-es5.min.js
(165 B)
📄
admin-history-versions-es5.min.js.gz
(153 B)
📄
admin-history-versions.js
(357 B)
📄
admin-history-versions.min.js
(133 B)
📄
admin-history-versions.min.js.gz
(135 B)
Editing: admin-history-modal.js
/** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ ((document, Joomla) => { if (!Joomla || typeof Joomla.Text._ !== 'function') { throw new Error('core.js was not properly initialised'); } document.addEventListener('DOMContentLoaded', () => { document.getElementById('toolbar-load').addEventListener('click', () => { const ids = document.querySelectorAll('input[id*="cb"]:checked'); if (ids.length === 1) { // Add version item id to URL const url = `${document.getElementById('toolbar-load').childNodes[1].getAttribute('data-url')}&version_id=${ids[0].value}`; if (window.parent && url) { window.parent.location = url; } } else { // @todo use the CE Modal here alert(Joomla.Text._('COM_CONTENTHISTORY_BUTTON_SELECT_ONE')); } return false; }); document.getElementById('toolbar-preview').addEventListener('click', () => { const windowSizeArray = ['width=800, height=600, resizable=yes, scrollbars=yes']; const ids = document.querySelectorAll('input[id*="cb"]:checked'); if (ids.length === 1) { // Add version item id to URL const url = `${document.getElementById('toolbar-preview').childNodes[1].getAttribute('data-url')}&version_id=${ids[0].value}`; if (window.parent && url) { window.open(url, '', windowSizeArray.toString()); } } else { // @todo use the CE Modal here alert(Joomla.Text._('COM_CONTENTHISTORY_BUTTON_SELECT_ONE')); } return false; }); document.getElementById('toolbar-compare').addEventListener('click', () => { const windowSizeArray = ['width=1000, height=600, resizable=yes, scrollbars=yes']; const ids = document.querySelectorAll('input[id*="cb"]:checked'); if (ids.length === 0) { // @todo use the CE Modal here alert(Joomla.Text._('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST')); } else if (ids.length === 2) { // Add version item ids to URL const url = `${document.getElementById('toolbar-compare').childNodes[1].getAttribute('data-url')}&id1=${ids[0].value}&id2=${ids[1].value}`; if (window.parent && url) { window.open(url, '', windowSizeArray.toString()); } } else { // @todo use the CE Modal here alert(Joomla.Text._('COM_CONTENTHISTORY_BUTTON_SELECT_TWO')); } return false; }); }); })(document, Joomla);
Upload File
Create Folder