diff --git a/build/media_source/system/js/joomla-popup.w-c.es6.js b/build/media_source/system/js/joomla-popup.w-c.es6.js index d5e6962c6caf9..989dbc11ef6e6 100644 --- a/build/media_source/system/js/joomla-popup.w-c.es6.js +++ b/build/media_source/system/js/joomla-popup.w-c.es6.js @@ -444,9 +444,8 @@ document.addEventListener('click', (event) => { export default JoomlaPopup; - // ================= testing ======================= // -const popup = new JoomlaPopup; +const popup = new JoomlaPopup(); popup.textHeader = 'The header'; popup.popupContent = 'blabla very strong text'; @@ -460,14 +459,14 @@ popup.popupContent = 'blabla very strong text'; // popup.src = 'index.php?option=com_content&view=articles&tmpl=component&layout=modal'; popup.popupButtons = [ - {label: 'Yes', onClick: () => popup.close()}, - {label: 'No', onClick: () => popup.close(), className: 'btn btn-outline-danger ms-2'} -] + { label: 'Yes', onClick: () => popup.close() }, + { label: 'No', onClick: () => popup.close(), className: 'btn btn-outline-danger ms-2' }, +]; // popup.width = '80vw'; // popup.height = '80vh'; -console.log([popup]); -//console.log(JoomlaPopup.alert('message')) -//console.log(JoomlaPopup.confirm('message?', () => {console.log(this)})) +// console.log([popup]); +// console.log(JoomlaPopup.alert('message')) +// console.log(JoomlaPopup.confirm('message?', () => {console.log(this)})) -//popup.show(); +// popup.show();