don't use hardcoded size for preview
This commit is contained in:
parent
1c9d52774e
commit
3cbbe395eb
|
@ -825,7 +825,9 @@ function getMimeIcon(mime, ready){
|
||||||
getMimeIcon.cache={};
|
getMimeIcon.cache={};
|
||||||
|
|
||||||
function getPreviewIcon(path, ready){
|
function getPreviewIcon(path, ready){
|
||||||
ready(OC.Router.generate('core_ajax_preview', {file: encodeURIComponent(path), x:36, y:36}));
|
var x = $('#filestable').data('preview-x');
|
||||||
|
var y = $('#filestable').data('preview-y');
|
||||||
|
ready(OC.Router.generate('core_ajax_preview', {file: encodeURIComponent(path), x:x, y:y}));
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUniqueName(name){
|
function getUniqueName(name){
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
<div id="emptyfolder"><?php p($l->t('Nothing in here. Upload something!'))?></div>
|
<div id="emptyfolder"><?php p($l->t('Nothing in here. Upload something!'))?></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<table id="filestable" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>">
|
<table id="filestable" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>" data-preview-x="36" data-preview-y="36">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th id='headerName'>
|
<th id='headerName'>
|
||||||
|
|
Loading…
Reference in New Issue