summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js8
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();
}
};
}]);