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

Use Globalize locally everywhere

This commit is contained in:
ferferga 2020-03-26 14:25:16 +01:00
parent a01c03c9ca
commit a0a3f88f39
48 changed files with 270 additions and 270 deletions

View file

@ -1,4 +1,4 @@
define(["jQuery", "loading", "libraryMenu", "fnchecked"], function ($, loading, libraryMenu) {
define(["jQuery", "loading", "libraryMenu", "fnchecked", "globalize"], function ($, loading, libraryMenu, globalize) {
"use strict";
function loadDeleteFolders(page, user, mediaFolders) {
@ -112,7 +112,7 @@ define(["jQuery", "loading", "libraryMenu", "fnchecked"], function ($, loading,
loading.hide();
require(["toast"], function (toast) {
toast(Globalize.translate("SettingsSaved"));
toast(globalize.translate("SettingsSaved"));
});
}
@ -176,7 +176,7 @@ define(["jQuery", "loading", "libraryMenu", "fnchecked"], function ($, loading,
var currentUser;
$(document).on("pageinit", "#editUserPage", function () {
$(".editUserProfileForm").off("submit", onSubmit).on("submit", onSubmit);
this.querySelector(".sharingHelp").innerHTML = Globalize.translate("OptionAllowLinkSharingHelp", 30);
this.querySelector(".sharingHelp").innerHTML = globalize.translate("OptionAllowLinkSharingHelp", 30);
var page = this;
$("#chkEnableDeleteAllFolders", this).on("change", function () {
if (this.checked) {