Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-01-22 01:27:26 +0300
committerBernhard Posselt <dev@bernhard-posselt.com>2016-01-22 01:27:26 +0300
commit91d81977919370302a3e950b91f1dd0be7d1174b (patch)
tree5f25bb209210186be1faecec03823cb640ec07ae /js/directive
parent077ececfd51c6602b4d6f365ee774a0463769340 (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 2fc0671de..5095a5a75 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 () {
+ var refresh = function (elem) {
$timeout(function () {
- $('.grid').masonry({
+ elem.parent().masonry({
itemSelector: '.grid-item',
gutter: 25,
columnWidth: 300
@@ -19,9 +19,9 @@ app.directive('newsRefreshMasonry', function ($timeout) {
});
};
- return function (scope) {
+ return function (scope, elem) {
if (scope.$last) {
- refresh();
+ refresh(elem);
}
};
}); \ No newline at end of file