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

fix directory browser parent path

This commit is contained in:
Luke Pulverenti 2016-01-29 23:55:05 -05:00
parent 0c696294ae
commit e4fcafe7aa
9 changed files with 35 additions and 68 deletions

View file

@ -275,6 +275,8 @@
if (request.dataType == 'json' || request.headers.accept == 'application/json') {
return response.json();
} else if (request.dataType == 'text' || (response.headers.get('Content-Type') || '').toLowerCase().indexOf('text/') == 0) {
return response.text();
} else {
return response;
}
@ -398,6 +400,8 @@
if (request.dataType == 'json' || request.headers.accept == 'application/json') {
return response.json();
} else if (request.dataType == 'text' || (response.headers.get('Content-Type') || '').toLowerCase().indexOf('text/') == 0) {
return response.text();
} else {
return response;
}
@ -1300,6 +1304,9 @@
if (!path) {
throw new Error("null path");
}
if (typeof (path) !== 'string') {
throw new Error('invalid path');
}
options = options || {};
@ -1343,7 +1350,8 @@
return self.ajax({
type: "GET",
url: url
url: url,
dataType: 'text'
});
};