Uncomment the loading logic :)

This commit is contained in:
Robin Ward 2013-11-28 14:18:32 -05:00
parent 924a88b5c0
commit f1bce7cc42

View file

@ -141,15 +141,15 @@ Discourse.CloakedCollectionView = Ember.CollectionView.extend(Discourse.Scrollin
toCloak.forEach(function (v) { v.cloak(); });
});
// for (var j=bottomView; j<childViews.length; j++) {
// var checkView = childViews[j];
// if (!checkView.get('containedView')) {
// if (!checkView.get('loading')) {
// checkView.$().html("<div class='spinner'>" + I18n.t('loading') + "</div>");
// }
// return;
// }
// }
for (var j=bottomView; j<childViews.length; j++) {
var checkView = childViews[j];
if (!checkView.get('containedView')) {
if (!checkView.get('loading')) {
checkView.$().html("<div class='spinner'>" + I18n.t('loading') + "</div>");
}
return;
}
}
},