forked from 0x2620/pandora
pass size
This commit is contained in:
parent
38341a43c6
commit
8a83ba5bb8
2 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ pandora.ui.collection = function() {
|
||||||
var sortKey = sort[0].key,
|
var sortKey = sort[0].key,
|
||||||
infoKey = sortKey == 'title' ? 'extension' : sortKey,
|
infoKey = sortKey == 'title' ? 'extension' : sortKey,
|
||||||
key = Ox.getObjectById(pandora.site.documentKeys, infoKey),
|
key = Ox.getObjectById(pandora.site.documentKeys, infoKey),
|
||||||
info = pandora.formatDocumentKey(key, data),
|
info = pandora.formatDocumentKey(key, data, size),
|
||||||
size = size || 128;
|
size = size || 128;
|
||||||
return {
|
return {
|
||||||
height: Math.round(data.ratio > 1 ? size / data.ratio : size),
|
height: Math.round(data.ratio > 1 ? size / data.ratio : size),
|
||||||
|
|
|
@ -1080,7 +1080,7 @@ pandora.exitFullscreen = function() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.formatDocumentKey = function(key, data) {
|
pandora.formatDocumentKey = function(key, data, size) {
|
||||||
var value;
|
var value;
|
||||||
if (key.format) {
|
if (key.format) {
|
||||||
value = (
|
value = (
|
||||||
|
|
Loading…
Reference in a new issue