Hi Rudy,
Thanks, yes it's just a copy of the default one, with some added attributes. They work on their own, but not together..
createMethods.push(function(){
var forumCreateData = {
GroupId: group.Id,
Name: group.Name + ' - General Discussions' // + context.singularNameForum
};
// if there was a mailing list associated with this forum create request, create it now
if($(context.forumMailingInput).is(':checked')) {
$.extend(forumCreateData, {
EnableMailingList: true,
MailingListName: forumCreateData.Name,
MailingListAddress: $(context.forumAddressInput).val()
});
}
$.telligent.evolution.post({
url: $.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/forums.json',
data: forumCreateData,
success: function(response) {
handleResponse(response, context.createForumErrorMessage);
},
defaultErrorMessage: context.createForumErrorMessage
});
});
createMethods.push(function(){
var forumCreateData = {
GroupId: group.Id,
Name: group.Name + ' - Questions & Answers', # + context.singularNameForum
AllowedThreadTypes: 'QuestionAndAnswer'
};
// if there was a mailing list associated with this forum create request, create it now
if($(context.forumMailingInput).is(':checked')) {
$.extend(forumCreateData, {
EnableMailingList: true,
MailingListName: forumCreateData.Name,
MailingListAddress: $(context.forumAddressInput).val()
});
}
$.telligent.evolution.post({
url: $.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/forums.json',
data: forumCreateData,
success: function(response) {
handleResponse(response, context.createForumErrorMessage);
},
defaultErrorMessage: context.createForumErrorMessage
});
});