2015-08-12 03:36:08 +00:00
/* jslint node: true */
'use strict' ;
var MenuModule = require ( '../core/menu_module.js' ) . MenuModule ;
//var theme = require('../core/theme.js');
//var async = require('async');
//var assert = require('assert');
//var _ = require('lodash');
exports . getModule = MessageAreaModule ;
exports . moduleInfo = {
name : 'Message Area' ,
desc : 'Module for interacting with area messages' ,
author : 'NuSkooler' ,
} ;
function MessageAreaModule ( options ) {
MenuModule . call ( this , options ) ;
var self = this ;
this . menuMethods = {
changeArea : function ( formData , extraArgs ) {
2015-08-18 03:45:11 +00:00
// :TODO: really, we just need to go to a menu with a list of areas to select from and call a @systemMethod:setMessageArea() call with fallback to here
self . client . user . persistProperty ( 'message_area_id' , 2 , function persisted ( err ) {
} ) ; // :TODO: just for testing
2015-08-12 03:36:08 +00:00
}
} ;
}
require ( 'util' ) . inherits ( MessageAreaModule , MenuModule ) ;
MessageAreaModule . prototype . mciReady = function ( mciData , cb ) {
this . standardMCIReadyHandler ( mciData , cb ) ;
} ;