mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 18:56:00 +02:00
* Load 'message_area_id' from user props
This commit is contained in:
parent
7990202317
commit
d491bd9582
1 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,14 @@ function AreaPostFSEModule(options) {
|
|||
// we're posting, so always start with 'edit' mode
|
||||
this.editorMode = 'edit';
|
||||
|
||||
//
|
||||
// If messageAreaId is passed in extraArgs, use it. Otherwise, look
|
||||
// to the client user for current area ID
|
||||
//
|
||||
if(_.isNumber(client.user.properties.message_area_id)) {
|
||||
this.messageAreaId = client.user.properties.message_area_id;
|
||||
}
|
||||
|
||||
this.menuMethods.editModeMenuSave = function(formData, extraArgs) {
|
||||
var msg = self.getMessage();
|
||||
console.log(msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue