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 5ac2abd85..ae590f941 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -2859,16 +2859,16 @@ app.directive('newsReadFile', function () {
});
};
});
-app.directive('newsRefreshMasonry', ["$timeout", function ($timeout) {
+app.directive('newsRefreshMasonry', function () {
'use strict';
var refresh = function (elem) {
- $timeout(function () {
+
elem.parent().masonry({
itemSelector: '.grid-item',
gutter: 25,
columnWidth: 300
});
- });
+
};
return function (scope, elem) {
@@ -2876,7 +2876,7 @@ app.directive('newsRefreshMasonry', ["$timeout", function ($timeout) {
refresh(elem);
}
};
-}]);
+});
app.directive('newsScroll', ["$timeout", "ITEM_AUTO_PAGE_SIZE", "MARK_READ_TIMEOUT", "SCROLL_TIMEOUT", function ($timeout, ITEM_AUTO_PAGE_SIZE,
MARK_READ_TIMEOUT, SCROLL_TIMEOUT) {
'use strict';