diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-21 23:21:20 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-01-21 23:21:20 +0100 |
commit | 9ba46b4b8a32d1949efe9c6315e804c530e4e351 (patch) | |
tree | 8310a756b22a282571c924797afa069c4e9f6dc4 /js/build/app.js | |
parent | 438125eb7d108f91f68acaacb0532e0c9e44b8c4 (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 50283444f..5348660b2 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 (elem) { + var refresh = function () { $timeout(function () { - elem.parent().masonry({ + $('.grid').masonry({ itemSelector: '.grid-item', gutter: 25, columnWidth: 300 @@ -2872,11 +2872,11 @@ app.directive('newsRefreshMasonry', ["$timeout", function ($timeout) { }); }; - return function (scope, elem) { + return function (scope) { console.log('loading'); console.log(scope); if (scope.$last) { - refresh(elem); + refresh(); } }; }]); |