first commit
This commit is contained in:
17
media/com_associations/js/admin-associations-default.js
Normal file
17
media/com_associations/js/admin-associations-default.js
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
Joomla.submitbutton = pressbutton => {
|
||||
if (pressbutton === 'associations.purge') {
|
||||
// eslint-disable-next-line no-restricted-globals
|
||||
if (confirm(Joomla.Text._('COM_ASSOCIATIONS_PURGE_CONFIRM_PROMPT'))) {
|
||||
Joomla.submitform(pressbutton);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
Joomla.submitform(pressbutton);
|
||||
}
|
||||
return true;
|
||||
};
|
||||
Reference in New Issue
Block a user