summaryrefslogtreecommitdiffstats
path: root/js/directive
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-01-21 23:21:20 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2016-01-21 23:21:20 +0100
commit9ba46b4b8a32d1949efe9c6315e804c530e4e351 (patch)
tree8310a756b22a282571c924797afa069c4e9f6dc4 /js/directive
parent438125eb7d108f91f68acaacb0532e0c9e44b8c4 (diff)
debug
Diffstat (limited to 'js/directive')
-rw-r--r--js/directive/NewsRefreshMasonry.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/directive/NewsRefreshMasonry.js b/js/directive/NewsRefreshMasonry.js
index 07daa6ea2..8831f7319 100644
--- a/js/directive/NewsRefreshMasonry.js
+++ b/js/directive/NewsRefreshMasonry.js
@@ -9,9 +9,9 @@
*/
app.directive('newsRefreshMasonry', 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
@@ -20,11 +20,11 @@ app.directive('newsRefreshMasonry', function ($timeout) {
});
};
- return function (scope, elem) {
+ return function (scope) {
console.log('loading');
console.log(scope);
if (scope.$last) {
- refresh(elem);
+ refresh();
}
};
}); \ No newline at end of file