Spinner doesn't show if there are no more pins to load

This commit is contained in:
Isaac Bythewood
2013-03-03 14:34:33 +00:00
parent 6abb1ffe88
commit 08410ba50d

View File

@@ -93,6 +93,10 @@ $(window).load(function() {
});
});
if (pins.meta.total_count == 0) {
$('.spinner').css('display', 'none');
}
// Up our offset, it's currently defined as 30 in our settings
offset += apiLimitPerPage;
});