* Fix word wrap bug introduced prior -- use 'expand' not 'expandTabs'

* Notes on better access of views by ID
* Work on apply process a bit
* Replies can now be saved
This commit is contained in:
Bryan Ashby
2015-09-20 01:29:07 -06:00
parent a6d00b05a7
commit b15d9a0bf8
7 changed files with 71 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ function validateApplicationData(formData, cb) {
}
if(isNaN(Date.parse(formData.value.birthdate))) {
cb('Invalid birthdate!');
cb('Invalid birthdate!', [ 3 ] );
return;
}
@@ -109,6 +109,8 @@ function submitApplication(callingMenu, formData, extraArgs) {
newUser.create( { password : formData.value.password }, function created(err) {
if(err) {
Log.info( { error : err, username : formData.value.username }, 'New user creation failed');
client.gotoMenuModule( { name : extraArgs.error } );
} else {
Log.info( { username : formData.value.username, userId : newUser.userId }, 'New user created');

View File

@@ -230,6 +230,13 @@
}
]
}
actionKeys: [
{
keys: [ "escape" ]
viewId: 13
}
]
}
}
}
@@ -664,6 +671,10 @@
submit: {
*: [
{
value: { 1: 0 }
action: @method:editModeMenuSave
}
{
value: { 1: 1 }
action: @method:replyDiscard
@@ -686,7 +697,7 @@
}
{
keys: [ "s", "shift + s" ]
action: @method:replySave
action: @method:editModeMenuSave
}
{
keys: [ "d", "shift + d" ]

View File

@@ -50,7 +50,8 @@ function AreaPostFSEModule(options) {
console.log(msg);
}
self.client.gotoMenuModule( { name : self.menuConfig.fallback } );
self.client.fallbackMenuModule();
//self.client.gotoMenuModule( { name : self.menuConfig.fallback } );
}
);
};