initMasonry

pull/12/head
Szekeres Bálint 7 years ago
parent 75325bf581
commit d5dd74ed4f

@ -12,17 +12,6 @@
var masonry = new Masonry('main .files .grid', {
itemSelector: '.grid-item',
columnWidth: '.grid-sizer',
percentPosition: true,
initLayout: false,
stagger: 0,
transitionDuration: '0.6s'
});
angular
.module('NginxConfigIoApp', ['ngclipboard', '720kb.tooltips'])
.config(function NginxCongigIoConfig($locationProvider) {
@ -34,6 +23,7 @@
///////////////////////
// PRIVATE VARIABLES //
///////////////////////
var masonry;
var data = {
domain: '',
path: '',
@ -216,6 +206,16 @@
});
};
$scope.initMasonry = function() {
masonry = new Masonry('main .files .grid', {
itemSelector: '.grid-item',
columnWidth: '.grid-sizer',
percentPosition: true,
stagger: 0,
transitionDuration: '0.6s'
});
};
///////////////////////////
@ -328,6 +328,7 @@
// INIT //
//////////
$scope.setDataFromHash();
$scope.initMasonry();
})
.config(['tooltipsConfProvider', function (tooltipsConfProvider) {
tooltipsConfProvider.configure({

Loading…
Cancel
Save