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

update translations

This commit is contained in:
Luke Pulverenti 2014-04-08 22:12:17 -04:00
parent 9a59fa6f70
commit 9ee76d4555
21 changed files with 127 additions and 101 deletions

View file

@ -220,11 +220,31 @@ function humane_elapsed(firstDateStr, secondDateStr) {
}
function getWindowUrl(win) {
return (win || window).location.href;
}
function getWindowLocationSearch(win) {
var search = (win || window).location.search;
if (!search) {
var index = window.location.href.indexOf('?');
if (index != -1) {
search = window.location.href.substring(index);
}
}
alert();
return search || '';
}
function getParameterByName(name, url) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS, "i");
var results = regex.exec(url || window.location.search);
var results = regex.exec(url || getWindowLocationSearch());
if (results == null)
return "";
else