Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #15 from jellyfin/jquery
Browse files Browse the repository at this point in the history
remove jquery
  • Loading branch information
dkanada authored Jul 4, 2020
2 parents 2a7b7c6 + ef32269 commit 2897250
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions MediaBrowser.Plugins.SmtpNotifications/Configuration/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@
return userId == c.UserId;
})[0] || { Enabled: false };

$('#chkEnableSMTP', page).checked = smtpConfig.Enabled;
document.getElementById('chkEnableSMTP').checked = smtpConfig.Enabled;
$('#txtEmailFrom', page).val(smtpConfig.EmailFrom || '');
$('#txtEmailTo', page).val(smtpConfig.EmailTo || '');
$('#txtServer', page).val(smtpConfig.Server || '');
$('#txtPort', page).val(smtpConfig.Port || '');
$('#chkEnableSSL', page).checked = smtpConfig.SSL || false;
$('#chkEnableAuth', page).checked = smtpConfig.UseCredentials || false;
document.getElementById('chkEnableSSL').checked = smtpConfig.SSL || false;
document.getElementById('chkEnableAuth').checked = smtpConfig.UseCredentials || false;
$('#txtUsername', page).val(smtpConfig.Username || '');
$('#txtPassword', page).val(smtpConfig.Password || '');

Expand Down Expand Up @@ -148,13 +148,13 @@
}

smtpConfig.UserId = userId;
smtpConfig.Enabled = $('#chkEnableSMTP', form).checked;
smtpConfig.Enabled = document.getElementById('chkEnableSMTP').checked;
smtpConfig.EmailFrom = $('#txtEmailFrom', form).val();
smtpConfig.EmailTo = $('#txtEmailTo', form).val();
smtpConfig.Server = $('#txtServer', form).val();
smtpConfig.Port = $('#txtPort', form).val();
smtpConfig.useCredentials = $('#chkEnableAuth', form).checked;
smtpConfig.SSL = $('#chkEnableSSL', form).checked;
smtpConfig.useCredentials = document.getElementById('chkEnableAuth').checked;
smtpConfig.SSL = document.getElementById('chkEnableSSL').checked;
smtpConfig.Username = $('#txtUsername', form).val();
smtpConfig.Password = $('#txtPassword', form).val();

Expand All @@ -169,9 +169,9 @@
var page = this;

ApiClient.getUsers().then(function (users) {
$('#selectUser', page).html(users.map(function (user) {
document.getElementById('selectUser').innerHTML = users.map(function (user) {
return '<option value="' + user.Id + '">' + user.Name + '</option>';
})).selectmenu('refresh').trigger('change');
});
});

Dashboard.hideLoadingMsg();
Expand Down

0 comments on commit 2897250

Please sign in to comment.