diff options
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'; |