Skip to content

Commit f1bce7c

Browse files
committed
Uncomment the loading logic :)
1 parent 924a88b commit f1bce7c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

app/assets/javascripts/discourse/views/cloaked_collection_view.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,15 @@ Discourse.CloakedCollectionView = Ember.CollectionView.extend(Discourse.Scrollin
141141
toCloak.forEach(function (v) { v.cloak(); });
142142
});
143143

144-
// for (var j=bottomView; j<childViews.length; j++) {
145-
// var checkView = childViews[j];
146-
// if (!checkView.get('containedView')) {
147-
// if (!checkView.get('loading')) {
148-
// checkView.$().html("<div class='spinner'>" + I18n.t('loading') + "</div>");
149-
// }
150-
// return;
151-
// }
152-
// }
144+
for (var j=bottomView; j<childViews.length; j++) {
145+
var checkView = childViews[j];
146+
if (!checkView.get('containedView')) {
147+
if (!checkView.get('loading')) {
148+
checkView.$().html("<div class='spinner'>" + I18n.t('loading') + "</div>");
149+
}
150+
return;
151+
}
152+
}
153153

154154
},
155155

0 commit comments

Comments
 (0)