* Some work on NUA

* Placeholder for sysop feedback after NUA step
This commit is contained in:
Bryan Ashby 2015-09-22 23:13:06 -06:00
parent 6c38ff54d5
commit 1175278779
4 changed files with 152 additions and 92 deletions

View file

@ -245,8 +245,12 @@ function ViewController(options) {
function complete(err) {
// default to highest ID if no 'submit' entry present
if(!submitId) {
// :TODO: fix bug here: If errornous MCI code sare used, we'll reference invalid views -- these should jsut be ignored
self.getView(highestId).submit = true;
var highestIdView = self.getView(highestId);
if(highestIdView) {
highestIdView.submit = true;
} else {
self.client.log.warn( { highestId : highestId }, 'View does not exist');
}
}
cb(err, { initialFocusId : initialFocusId } );