mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
~ switch all strings to single quotes to match ESLint requirements
Signed-off-by: Christoph Potas <christoph286@googlemail.com>
This commit is contained in:
parent
1007308add
commit
9469c208e1
2 changed files with 10 additions and 10 deletions
|
@ -5,15 +5,15 @@ import globalize from 'globalize';
|
||||||
*/
|
*/
|
||||||
export function populateLanguages(select, languages) {
|
export function populateLanguages(select, languages) {
|
||||||
|
|
||||||
let html = "";
|
let html = '';
|
||||||
|
|
||||||
html += "<option value=''>" + globalize.translate('AnyLanguage') + "</option>";
|
html += "<option value=''>" + globalize.translate('AnyLanguage') + '</option>';
|
||||||
|
|
||||||
for (let i = 0, length = languages.length; i < length; i++) {
|
for (let i = 0, length = languages.length; i < length; i++) {
|
||||||
|
|
||||||
const culture = languages[i];
|
const culture = languages[i];
|
||||||
|
|
||||||
html += "<option value='" + culture.ThreeLetterISOLanguageName + "'>" + culture.DisplayName + "</option>";
|
html += "<option value='" + culture.ThreeLetterISOLanguageName + "'>" + culture.DisplayName + '</option>';
|
||||||
}
|
}
|
||||||
|
|
||||||
select.innerHTML = html;
|
select.innerHTML = html;
|
||||||
|
|
|
@ -10,14 +10,14 @@ export class SubtitleController {
|
||||||
this.subtitleSettingsInstance = null;
|
this.subtitleSettingsInstance = null;
|
||||||
this.view = view;
|
this.view = view;
|
||||||
|
|
||||||
view.addEventListener("viewshow", this.viewShow.bind(this));
|
view.addEventListener('viewshow', this.viewShow.bind(this));
|
||||||
view.addEventListener("change", this.change.bind(this));
|
view.addEventListener('change', this.change.bind(this));
|
||||||
view.addEventListener("viewbeforehide", this.viewBeforeHide.bind(this));
|
view.addEventListener('viewbeforehide', this.viewBeforeHide.bind(this));
|
||||||
view.addEventListener("viewdestroy", this.viewDestroy.bind(this));
|
view.addEventListener('viewdestroy', this.viewDestroy.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
viewShow() {
|
viewShow() {
|
||||||
window.addEventListener("beforeunload", this.beforeUnload.bind(this));
|
window.addEventListener('beforeunload', this.beforeUnload.bind(this));
|
||||||
|
|
||||||
if (this.subtitleSettingsInstance) {
|
if (this.subtitleSettingsInstance) {
|
||||||
this.subtitleSettingsInstance.loadData();
|
this.subtitleSettingsInstance.loadData();
|
||||||
|
@ -25,7 +25,7 @@ export class SubtitleController {
|
||||||
this.subtitleSettingsInstance = new subtitleSettings({
|
this.subtitleSettingsInstance = new subtitleSettings({
|
||||||
serverId: ApiClient.serverId(),
|
serverId: ApiClient.serverId(),
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
element: this.view.querySelector(".settingsContainer"),
|
element: this.view.querySelector('.settingsContainer'),
|
||||||
userSettings: this.currentSettings,
|
userSettings: this.currentSettings,
|
||||||
enableSaveButton: false,
|
enableSaveButton: false,
|
||||||
enableSaveConfirmation: false,
|
enableSaveConfirmation: false,
|
||||||
|
@ -55,7 +55,7 @@ export class SubtitleController {
|
||||||
|
|
||||||
beforeUnload(e) {
|
beforeUnload(e) {
|
||||||
if (this.hasChanges) {
|
if (this.hasChanges) {
|
||||||
e.returnValue = "You currently have unsaved changes. Are you sure you wish to leave?";
|
e.returnValue = 'You currently have unsaved changes. Are you sure you wish to leave?';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue