1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Migration of all files in auth to ES6 Modules

addserver
forgotpassword
forgotpasswordpin
login
selectserver
This commit is contained in:
Cameron 2020-07-09 16:20:32 +01:00
parent 1f8ce6e6f4
commit e033a748cc
6 changed files with 69 additions and 25 deletions

View file

@ -1,5 +1,6 @@
define(['globalize'], function (globalize) {
'use strict';
import globalize from 'globalize';
/* eslint-disable indent */
function processForgotPasswordResult(result) {
if (result.Success) {
@ -22,7 +23,7 @@ define(['globalize'], function (globalize) {
});
}
return function (view, params) {
export default function (view, params) {
function onSubmit(e) {
ApiClient.ajax({
type: 'POST',
@ -38,4 +39,5 @@ define(['globalize'], function (globalize) {
view.querySelector('form').addEventListener('submit', onSubmit);
};
});
/* eslint-disable indent */