mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-07-06 13:01:54 -07:00
filemanager fix
This commit is contained in:
parent
60ebfe321a
commit
8cc1ddf101
3 changed files with 10 additions and 5 deletions
|
@ -648,7 +648,12 @@ FM.generate_listing = function(reply, box) {
|
|||
|
||||
o.filetype = FM.getFileType(o.name);
|
||||
if(FM.IMG_FILETYPES.indexOf(o.filetype) >= 0 && o.filetype.length > 0) {
|
||||
FM.IMAGES[tab][FM.IMAGES[tab].length] = {'img': "/view/file/?path=/home/admin/"+o.name+"&raw=true", 'thumb': "/view/file/?path=/home/admin/"+o.name+"&raw=true", 'id': 'img-'+i};
|
||||
FM.IMAGES[tab][FM.IMAGES[tab].length++] =
|
||||
{
|
||||
'img': "/view/file/?path="+o.full_path+"&raw=true",
|
||||
'thumb': "/view/file/?path="+o.full_path+"&raw=true",
|
||||
'id': 'img-'+i
|
||||
};
|
||||
cl_act = 'onClick="FM.fotoramaOpen(\'' + tab + '\', \'img-' + i +'\')"';
|
||||
}
|
||||
|
||||
|
@ -717,7 +722,7 @@ FM.fotoramaOpen = function(tab, img_index) {
|
|||
});
|
||||
|
||||
$('.fotorama').on('fotorama:fullscreenexit', function (e, fotorama) {
|
||||
$('.fotorama').data('fotorama').destroy();
|
||||
$('.fotorama').data('fotorama').destroy();
|
||||
});
|
||||
|
||||
$('.fotorama').fotorama().data('fotorama').requestFullScreen();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue