mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
684 B
21 lines
684 B
var CommunityAffiliations = {
|
|
update : function(jid) {
|
|
var parts = MovimUtils.urlParts();
|
|
if (parts.params.length > 0) {
|
|
console.log(MovimUtils.formToJson(jid));
|
|
CommunityAffiliations_ajaxChangeAffiliation(
|
|
parts.params[0],
|
|
parts.params[1],
|
|
MovimUtils.formToJson(jid)
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
MovimWebsocket.attach(function() {
|
|
var parts = MovimUtils.urlParts();
|
|
if (parts.params.length > 0) {
|
|
CommunityAffiliations_ajaxGetSubscriptions(parts.params[0], parts.params[1]);
|
|
CommunityAffiliations_ajaxGetAffiliations(parts.params[0], parts.params[1]);
|
|
}
|
|
});
|