* Message number/total

This commit is contained in:
Bryan Ashby 2015-09-04 16:35:08 -06:00
parent 80460ea050
commit cc68106473
2 changed files with 11 additions and 16 deletions

View File

@ -81,6 +81,8 @@ function FullScreenEditorModule(options) {
if(_.isObject(options.extraArgs)) { if(_.isObject(options.extraArgs)) {
this.messageAreaName = options.extraArgs.messageAreaName || Message.WellKnownAreaNames.Private; this.messageAreaName = options.extraArgs.messageAreaName || Message.WellKnownAreaNames.Private;
this.messageNumber = options.extraArgs.messageNumber || 0;
this.messageTotal = options.extraArgs.messageTotal || 0;
} }
this.isEditMode = function() { this.isEditMode = function() {
@ -460,24 +462,12 @@ function FullScreenEditorModule(options) {
} }
} }
/* TL1 - From
TL2 - To
TL3 - Subject
TL5 - Date/Time (TODO: format)
TL6 - Message number
TL7 - Mesage total (in area)
TL8 - View Count
TL9 - Hash tags
TL10 - Message ID
TL11 - Reply to message ID*/
setHeaderText(MCICodeIds.Header.From, self.message.fromUserName); setHeaderText(MCICodeIds.Header.From, self.message.fromUserName);
setHeaderText(MCICodeIds.Header.To, self.message.toUserName); setHeaderText(MCICodeIds.Header.To, self.message.toUserName);
setHeaderText(MCICodeIds.Header.Subject, self.message.subject); setHeaderText(MCICodeIds.Header.Subject, self.message.subject);
setHeaderText(MCICodeIds.Header.DateTime, moment(self.message.modTimestamp).format(self.client.currentTheme.helpers.getDateTimeFormat())); setHeaderText(MCICodeIds.Header.DateTime, moment(self.message.modTimestamp).format(self.client.currentTheme.helpers.getDateTimeFormat()));
setHeaderText(MCICodeIds.Header.MsgNum, '1'); // :TODO: Message number setHeaderText(MCICodeIds.Header.MsgNum, self.messageNumber.toString());
setHeaderText(MCICodeIds.Header.MsgTotal, '100'); // :TODO: Message total setHeaderText(MCICodeIds.Header.MsgTotal, self.messageTotal.toString());
setHeaderText(MCICodeIds.Header.ViewCount, self.message.viewCount); setHeaderText(MCICodeIds.Header.ViewCount, self.message.viewCount);
setHeaderText(MCICodeIds.Header.HashTags, 'TODO hash tags'); setHeaderText(MCICodeIds.Header.HashTags, 'TODO hash tags');
setHeaderText(MCICodeIds.Header.MessageID, self.message.messageId); setHeaderText(MCICodeIds.Header.MessageID, self.message.messageId);

View File

@ -72,7 +72,12 @@ function MessageListModule(options) {
var modOpts = { var modOpts = {
// :TODO: get this name from config // :TODO: get this name from config
name : 'messageAreaViewPost', name : 'messageAreaViewPost',
extraArgs : { message : msg }, extraArgs : {
message : msg,
messageAreaName : self.messageAreaName,
messageNumber : formData.value.message + 1,
messageTotal : self.messageList.length,
},
}; };
self.client.gotoMenuModule(modOpts); self.client.gotoMenuModule(modOpts);