diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-21 23:27:26 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-21 23:27:26 +0100 |
commit | 91d81977919370302a3e950b91f1dd0be7d1174b (patch) | |
tree | 5f25bb209210186be1faecec03823cb640ec07ae /js/build/app.js | |
parent | 077ececfd51c6602b4d6f365ee774a0463769340 (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 a4086830d..5ac2abd85 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -2861,9 +2861,9 @@ app.directive('newsReadFile', function () { }); app.directive('newsRefreshMasonry', ["$timeout", function ($timeout) { 'use strict'; - var refresh = function () { + var refresh = function (elem) { $timeout(function () { - $('.grid').masonry({ + elem.parent().masonry({ itemSelector: '.grid-item', gutter: 25, columnWidth: 300 @@ -2871,9 +2871,9 @@ app.directive('newsRefreshMasonry', ["$timeout", function ($timeout) { }); }; - return function (scope) { + return function (scope, elem) { if (scope.$last) { - refresh(); + refresh(elem); } }; }]); |