mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17100] Move onchange for date select to admin ajax.js
PHPBB3-17100
This commit is contained in:
parent
3b20b84e5a
commit
69f65956a9
1 changed files with 13 additions and 0 deletions
|
@ -340,6 +340,19 @@ $(function() {
|
|||
});
|
||||
}
|
||||
|
||||
// Handle date option changes
|
||||
const dateoptionSelect = document.getElementById('dateoptions');
|
||||
if (dateoptionSelect) {
|
||||
dateoptionSelect.addEventListener('change', function() {
|
||||
const dateoptionInput = document.getElementById(this.getAttribute('data-dateoption'));
|
||||
if (this.value === 'custom') {
|
||||
dateoptionInput.value = this.getAttribute('data-dateoption-default');
|
||||
} else {
|
||||
dateoptionInput.value = this.value;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
if ($('#acp_help_phpbb')) {
|
||||
phpbb.prepareSendStats();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue