diff --git a/view/theme/frio/js/filebrowser.js b/view/theme/frio/js/filebrowser.js index 5c60c44ca..d18bf8e79 100644 --- a/view/theme/frio/js/filebrowser.js +++ b/view/theme/frio/js/filebrowser.js @@ -217,10 +217,12 @@ var FileBrowser = { }, postLoad: function() { + FileBrowser.initGallery(); $(".fbrowser .fbswitcher .btn").removeClass("active"); $(".fbrowser .fbswitcher [data-mode=" + FileBrowser.type + "]").addClass("active"); // We need to add the AjaxUpload to the button FileBrowser.uploadButtons(); + }, loadContent: function(url) { @@ -235,5 +237,13 @@ var FileBrowser = { FileBrowser.postLoad(); } }); + }, + + initGallery: function() { + $(".fbrowser.image .fbrowser-content-container").justifiedGallery({ + 'rowHeight': 80, + 'margins': 3, + 'border': 0 + }); } }; diff --git a/view/theme/frio/templates/filebrowser.tpl b/view/theme/frio/templates/filebrowser.tpl index dc8a9593a..cb0534895 100644 --- a/view/theme/frio/templates/filebrowser.tpl +++ b/view/theme/frio/templates/filebrowser.tpl @@ -34,14 +34,16 @@ {{/if}}
{{$f.1}}
- +{{$f.1}}
+ +