Skip to content
Snippets Groups Projects
Verified Commit 9bfd274d authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

[web] fix notification selector not updating on load

parent e88193d8
No related branches found
No related tags found
No related merge requests found
......@@ -320,9 +320,12 @@ $('#revoke-tokeninfo').on('click', function () {
$revocationModal.modal();
})
const $notificationTypeSelector = $('#notification-type-selector');
function notificationModal() {
let id = this.id.replace("notify-", "");
$notificationMOMID.val(id);
$notificationTypeSelector.trigger('change');
$notificationsModal.modal();
}
......@@ -335,7 +338,7 @@ const $calendarURL = $('#notify-calendar-url');
let calendarURLs = {};
$('#notification-type-selector').on('change', function () {
$notificationTypeSelector.on('change', function () {
let t = $(this).val();
switch (t) {
case 'email':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment