From 15d844262dd6d235a4bf4c8a69a72ce8cb4d8807 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 11 Oct 2015 20:52:13 -0600 Subject: [PATCH] * Minor tweaks to message list --- mods/menu.hjson | 1 - mods/msg_list.js | 2 ++ mods/themes/luciano_blocktronics/theme.hjson | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mods/menu.hjson b/mods/menu.hjson index 8432754b..86aaafc5 100644 --- a/mods/menu.hjson +++ b/mods/menu.hjson @@ -538,7 +538,6 @@ 0: { mci: { VM1: { - height: 10 focus: true submit: true argName: message diff --git a/mods/msg_list.js b/mods/msg_list.js index fc4e5f7a..2e2e2710 100644 --- a/mods/msg_list.js +++ b/mods/msg_list.js @@ -133,6 +133,7 @@ MessageListModule.prototype.mciReady = function(mciData, cb) { function populateList(callback) { var msgListView = vc.getView(MciCodesIds.MsgList); + // :TODO: fix default format var listFormat = self.menuConfig.config.listFormat || '{msgNum:>4} - {subj:>35} |{to:>15}'; var focusListFormat = self.menuConfig.config.focusListFormat; @@ -175,6 +176,7 @@ MessageListModule.prototype.mciReady = function(mciData, cb) { function populateOtherMciViews(callback) { self.setViewText(MciCodesIds.MsgAreaDesc, messageArea.getMessageAreaByName(self.messageAreaName).desc); + self.setViewText(MciCodesIds.MsgSelNum, (vc.getView(MciCodesIds.MsgList).getData() + 1).toString()); self.setViewText(MciCodesIds.MsgTotal, self.messageList.length.toString()); callback(null); diff --git a/mods/themes/luciano_blocktronics/theme.hjson b/mods/themes/luciano_blocktronics/theme.hjson index 34f7c369..a159fd2b 100644 --- a/mods/themes/luciano_blocktronics/theme.hjson +++ b/mods/themes/luciano_blocktronics/theme.hjson @@ -71,9 +71,14 @@ messageAreaMessageList: { config: { - listFormat: "|00|01|37{msgNum:>4} |00|37- |36{subj:<29.29} {from:<20.20} {ts} {newMark}" + listFormat: "|00|01|37{msgNum:>4} |00|37- |36{subj:<29.29} {from:<20.20} {ts} |01|31{newMark}" focusListFormat: "|00|42|30{msgNum:>4} - {subj:<29.29} {from:<20.20} {ts} {newMark}" } + mci: { + VM1: { + height: 14 + } + } } messageAreaViewPost: {