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 angular
.module('NginxConfigIoApp', ['ngclipboard', '720kb.tooltips']) .module('NginxConfigIoApp', ['ngclipboard', '720kb.tooltips'])
.config(function NginxCongigIoConfig($locationProvider) { .config(function NginxCongigIoConfig($locationProvider) {
@ -34,6 +23,7 @@
/////////////////////// ///////////////////////
// PRIVATE VARIABLES // // PRIVATE VARIABLES //
/////////////////////// ///////////////////////
var masonry;
var data = { var data = {
domain: '', domain: '',
path: '', 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 // // INIT //
////////// //////////
$scope.setDataFromHash(); $scope.setDataFromHash();
$scope.initMasonry();
}) })
.config(['tooltipsConfProvider', function (tooltipsConfProvider) { .config(['tooltipsConfProvider', function (tooltipsConfProvider) {
tooltipsConfProvider.configure({ tooltipsConfProvider.configure({

Loading…
Cancel
Save