mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-06 02:32:44 +00:00
Album page landscape improvements
This commit is contained in:
parent
040aeb1a40
commit
a172b6d914
9 changed files with 433 additions and 199 deletions
|
@ -53,11 +53,15 @@ function itemImageUrl(baseUrl, item, type, options) {
|
|||
}
|
||||
|
||||
function itemModelImageUrl(baseUrl, itemId, tag, type, options) {
|
||||
if (tag == undefined) return ""
|
||||
if (tag === undefined) return ""
|
||||
var extraQuery = "";
|
||||
for (var prop in options) {
|
||||
if (options.hasOwnProperty(prop)) {
|
||||
extraQuery += "&" + prop + "=" + options[prop];
|
||||
var value = options[prop];
|
||||
if (prop === "maxWidth" || prop === "maxHeight") {
|
||||
value = Math.floor(options[prop]);
|
||||
}
|
||||
extraQuery += "&" + prop + "=" + value;
|
||||
}
|
||||
}
|
||||
return baseUrl + "/Items/" + itemId + "/Images/" + type + "?tag=" + tag + extraQuery
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue