* Message number/total
This commit is contained in:
parent
80460ea050
commit
cc68106473
18
core/fse.js
18
core/fse.js
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue