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

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.0.31",
"_release": "1.0.31",
"version": "1.0.33",
"_release": "1.0.33",
"_resolution": {
"type": "version",
"tag": "1.0.31",
"commit": "8d350054f19ad1d9cdfc1258baf0f907bcdfb1ae"
"tag": "1.0.33",
"commit": "18b04408e1d07fa162db92fa30eec77adfeb0e44"
},
"_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
"_target": "~1.0.3",

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'
});
};