},\r
\r
postLoad: function() {\r
+ FileBrowser.initGallery();\r
$(".fbrowser .fbswitcher .btn").removeClass("active");\r
$(".fbrowser .fbswitcher [data-mode=" + FileBrowser.type + "]").addClass("active");\r
// We need to add the AjaxUpload to the button\r
FileBrowser.uploadButtons();\r
+ \r
},\r
\r
loadContent: function(url) {\r
FileBrowser.postLoad();\r
}\r
});\r
+ },\r
+\r
+ initGallery: function() {\r
+ $(".fbrowser.image .fbrowser-content-container").justifiedGallery({\r
+ 'rowHeight': 80,\r
+ 'margins': 3,\r
+ 'border': 0\r
+ });\r
}\r
};\r
{{/if}}
<div class="list {{$type}} media-body">
- {{foreach $files as $f}}
- <div class="photo-album-image-wrapper">
- <a href="#" class="photo-album-photo-link" data-link="{{$f.0}}" data-filename="{{$f.1}}" data-img="{{$f.2}}">
- <img src="{{$f.2}}">
- <p>{{$f.1}}</p>
- </a>
+ <div class="fbrowser-content-container">
+ {{foreach $files as $f}}
+ <div class="photo-album-image-wrapper">
+ <a href="#" class="photo-album-photo-link" data-link="{{$f.0}}" data-filename="{{$f.1}}" data-img="{{$f.2}}">
+ <img src="{{$f.2}}" alt="{{$f.1}}">
+ <p>{{$f.1}}</p>
+ </a>
+ </div>
+ {{/foreach}}
</div>
- {{/foreach}}
</div>
</div>