Skip to content

Commit

Permalink
Joomla popup jscs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Mar 12, 2023
1 parent 623bffe commit fd01507
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions build/media_source/system/js/joomla-popup.w-c.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<strong>blabla very strong text</strong>';

Expand All @@ -460,14 +459,14 @@ popup.popupContent = '<strong>blabla very strong text</strong>';
// 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();

0 comments on commit fd01507

Please sign in to comment.