Optimize latest posts page

This commit is contained in:
Pierre 2018-05-26 16:19:24 +02:00
parent 2c07e76684
commit 2e0b130ac5

View File

@ -106,8 +106,9 @@ ComunicWeb.pages.latestPosts.main = {
//Display the list of posts //Display the list of posts
ComunicWeb.pages.latestPosts.main._display_list(response, target); ComunicWeb.pages.latestPosts.main._display_list(response, target);
//Unlock posts loading //Unlock posts loading (if required)
ComunicWeb.pages.latestPosts.main._load_post_locked = false; if(response.length != 0)
ComunicWeb.pages.latestPosts.main._load_post_locked = false;
}); });
}, },