diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-21 23:32:23 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-21 23:32:23 +0100 |
commit | deffd49d09c2f5f55a55c1cfeca63065b95fa6fc (patch) | |
tree | a73459238ec1d456f2375dafc5361b5bfc3a7b1b /js/build/app.js | |
parent | e996b1e904d162e4055424db499c16f469b09cde (diff) |
debug
Diffstat (limited to 'js/build/app.js')
-rw-r--r-- | js/build/app.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/js/build/app.js b/js/build/app.js index ae590f941..d7f841734 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -2859,16 +2859,18 @@ app.directive('newsReadFile', function () { }); }; }); -app.directive('newsRefreshMasonry', function () { +app.directive('newsRefreshMasonry', ["$timeout", function ($timeout) { 'use strict'; var refresh = function (elem) { - - elem.parent().masonry({ - itemSelector: '.grid-item', - gutter: 25, - columnWidth: 300 + $timeout(function () { + $timeout(function () { + elem.parent().masonry({ + itemSelector: '.grid-item', + gutter: 25, + columnWidth: 300 + }); }); - + }); }; return function (scope, elem) { @@ -2876,7 +2878,7 @@ app.directive('newsRefreshMasonry', function () { refresh(elem); } }; -}); +}]); app.directive('newsScroll', ["$timeout", "ITEM_AUTO_PAGE_SIZE", "MARK_READ_TIMEOUT", "SCROLL_TIMEOUT", function ($timeout, ITEM_AUTO_PAGE_SIZE, MARK_READ_TIMEOUT, SCROLL_TIMEOUT) { 'use strict'; |