mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-06 01:35:04 +02:00
* Very minor
This commit is contained in:
parent
d71cae5c37
commit
990dffe880
4 changed files with 28 additions and 13 deletions
|
@ -22,14 +22,6 @@ 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);
|
||||
|
@ -38,3 +30,14 @@ function AreaPostFSEModule(options) {
|
|||
|
||||
require('util').inherits(AreaPostFSEModule, FullScreenEditorModule);
|
||||
|
||||
AreaPostFSEModule.prototype.enter = function(client) {
|
||||
//
|
||||
// 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;
|
||||
}
|
||||
|
||||
AreaPostFSEModule.super_.prototype.enter.call(this, client);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue