This commit is contained in:
nnduc
2026-10-24 14:03:52 +07:00
commit 4fe046de58
4790 changed files with 311146 additions and 0 deletions
@@ -0,0 +1,30 @@
var Communities = {
init: function() {
let parts = MovimUtils.urlParts();
let page = parts.params[0] !== undefined ? parseInt(parts.params[0]) : 0;
if (parts.hash != '') {
switch (parts.hash) {
case 'communities':
Communities_ajaxHttpGetCommunities(page);
break;
case 'contacts':
Communities_ajaxHttpGetContacts(page);
break;
}
} else {
Communities_ajaxHttpGetAll(page);
}
},
morePosts: function(button, page, type) {
button.remove();
Communities_ajaxHttpGetPosts(page, type);
}
}
MovimWebsocket.attach(function() {
Notif.current('community');
});
MovimWebsocket.initiate(() => Communities.init());