From 76c50dc721a6a8556e7ec169bd71408d78f7bacf Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Fri, 2 Oct 2020 09:10:22 +0800 Subject: [PATCH] Fix typo --- views/episodes.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/views/episodes.html b/views/episodes.html index d972bfad7..9d5038b34 100644 --- a/views/episodes.html +++ b/views/episodes.html @@ -1018,7 +1018,7 @@ const UploadStatus = { ERROR: 0, - VAILD: 1, + VALID: 1, UPLOAD: 2, DONE: 3 } @@ -1043,7 +1043,7 @@ data: null, render: function(data, type, row) { switch (data.status) { - case UploadStatus.VAILD: + case UploadStatus.VALID: return '' case UploadStatus.UPLOAD: return '' @@ -1152,7 +1152,7 @@ data.status = UploadStatus.ERROR; for(const exist of episodesDetails.data) { if (exist.episode == data.episode && exist.season == data.season) { - data.status = UploadStatus.VAILD; + data.status = UploadStatus.VALID; data.exist = exist break; } @@ -1171,7 +1171,7 @@ data.status = UploadStatus.ERROR; for(const exist of episodesDetails.data) { if (exist.episode == data.episode && exist.season == data.season) { - data.status = UploadStatus.VAILD; + data.status = UploadStatus.VALID; data.exist = exist break; } @@ -1234,7 +1234,7 @@ filename: name, season: season, episode: response.episode ?? 0, - status: existdata != null ? UploadStatus.VAILD : UploadStatus.ERROR, + status: existdata != null ? UploadStatus.VALID : UploadStatus.ERROR, exist: existdata, row: cacheRow }; @@ -1279,7 +1279,7 @@ let table = $('#upload_table').DataTable(); const uploadlist = table.data().toArray().filter(function(item) { - return item.status === UploadStatus.VAILD + return item.status === UploadStatus.VALID }); const promiselist = uploadlist.map(function(item) {