mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* Use pre-release of string-format with Python like widths/etc.
* Very minor updates to message list
This commit is contained in:
parent
0fd9df3821
commit
a6cd6bd3b9
3 changed files with 10 additions and 16 deletions
|
@ -112,14 +112,12 @@ MessageListModule.prototype.mciReady = function(mciData, cb) {
|
|||
function populateList(callback) {
|
||||
var msgListView = vc.getView(1);
|
||||
|
||||
// :TODO: {name!over5}, ...over6, over7... -> "text..." for format()
|
||||
|
||||
var msgNum = 1;
|
||||
msgListView.setItems(_.map(self.messageList, function formatMsgListEntry(mle) {
|
||||
return '{msgNum} - {subj} {to}'.format( {
|
||||
return '{msgNum:>4} - {subj:>25} {to:>15}'.format( {
|
||||
msgNum : msgNum++,
|
||||
subj : mle.subject,
|
||||
to : mle.toUsername
|
||||
to : mle.toUserName
|
||||
} );
|
||||
}));
|
||||
|
||||
|
@ -131,6 +129,7 @@ MessageListModule.prototype.mciReady = function(mciData, cb) {
|
|||
function complete(err) {
|
||||
if(err) {
|
||||
// :TODO: log this properly
|
||||
// :TODO: use fallbackMenuModule() here
|
||||
self.client.gotoMenuModule( { name : self.menuConfig.fallback } );
|
||||
console.log(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue