mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
web client re-org
This commit is contained in:
parent
ea285c28ef
commit
d5780727eb
81 changed files with 571 additions and 550 deletions
|
@ -251,6 +251,20 @@ function getParameterByName(name, url) {
|
|||
return decodeURIComponent(results[1].replace(/\+/g, " "));
|
||||
}
|
||||
|
||||
function replaceQueryString(url, param, value) {
|
||||
var re = new RegExp("([?|&])" + param + "=.*?(&|$)", "i");
|
||||
if (url.match(re))
|
||||
return url.replace(re, '$1' + param + "=" + value + '$2');
|
||||
else {
|
||||
|
||||
if (url.indexOf('?') == -1) {
|
||||
return url + '?' + param + "=" + value;
|
||||
}
|
||||
|
||||
return url + '&' + param + "=" + value;
|
||||
}
|
||||
}
|
||||
|
||||
function parseISO8601Date(s, options) {
|
||||
|
||||
options = options || {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue