summaryrefslogtreecommitdiffstats
path: root/js/directive
diff options
context:
space:
mode:
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