diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-21 23:31:28 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-21 23:31:28 +0100 |
commit | e996b1e904d162e4055424db499c16f469b09cde (patch) | |
tree | f7ee7f267ce2d4cc3eec40666ee2677a48896998 /js/build/app.js | |
parent | 109854e05ca14f1af2282d74ab1cc6aa45049023 (diff) |
debug
Diffstat (limited to 'js/build/app.js')
-rw-r--r-- | js/build/app.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/build/app.js b/js/build/app.js index 5ac2abd85..ae590f941 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -2859,16 +2859,16 @@ app.directive('newsReadFile', function () { }); }; }); -app.directive('newsRefreshMasonry', ["$timeout", function ($timeout) { +app.directive('newsRefreshMasonry', function () { 'use strict'; var refresh = function (elem) { - $timeout(function () { + elem.parent().masonry({ itemSelector: '.grid-item', gutter: 25, columnWidth: 300 }); - }); + }; return function (scope, elem) { @@ -2876,7 +2876,7 @@ app.directive('newsRefreshMasonry', ["$timeout", function ($timeout) { 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'; |