mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
e5a4b3813f
commit
e65b47e772
19 changed files with 58 additions and 193 deletions
|
@ -16,12 +16,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.2.59",
|
||||
"_release": "1.2.59",
|
||||
"version": "1.2.61",
|
||||
"_release": "1.2.61",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.2.59",
|
||||
"commit": "2089ec993031b303b5c2163fbc5aff5b37056d1f"
|
||||
"tag": "1.2.61",
|
||||
"commit": "d28f24510d524454f235f9f83979639e8b0913d6"
|
||||
},
|
||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "^1.2.0",
|
||||
|
|
|
@ -103,6 +103,15 @@
|
|||
return false;
|
||||
}();
|
||||
|
||||
function toLocaleDateString(date) {
|
||||
|
||||
var currentLocale = globalize.getCurrentLocale();
|
||||
|
||||
return currentLocale && toLocaleTimeStringSupportsLocales ?
|
||||
date.toLocaleDateString(currentLocale) :
|
||||
date.toLocaleDateString();
|
||||
}
|
||||
|
||||
function getDisplayTime(date) {
|
||||
|
||||
var currentLocale = globalize.getCurrentLocale();
|
||||
|
@ -144,6 +153,7 @@
|
|||
return {
|
||||
parseISO8601Date: parseISO8601Date,
|
||||
getDisplayRunningTime: getDisplayRunningTime,
|
||||
toLocaleDateString: toLocaleDateString,
|
||||
getDisplayTime: getDisplayTime
|
||||
};
|
||||
});
|
|
@ -449,7 +449,7 @@
|
|||
weekday[6] = globalize.translate('core#OptionSaturdayShort');
|
||||
|
||||
var day = weekday[date.getDay()];
|
||||
date = date.toLocaleDateString();
|
||||
date = datetime.toLocaleDateString(date);
|
||||
|
||||
if (date.toLowerCase().indexOf(day.toLowerCase()) == -1) {
|
||||
return day + " " + date;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue