* Very minor change

This commit is contained in:
Bryan Ashby 2015-09-01 15:37:03 -06:00
parent 02e90d7ca3
commit b910007647
1 changed files with 13 additions and 4 deletions

View File

@ -305,7 +305,7 @@ function FullScreenEditorModule(options) {
var header = self.viewControllers.header;
var from = header.getView(1);
from.acceptsFocus = false;
from.setText(self.client.user.username);
//from.setText(self.client.user.username);
var body = self.viewControllers.body.getView(1);
self.updateTextEditMode(body.getTextEditMode());
@ -313,10 +313,19 @@ function FullScreenEditorModule(options) {
callback(null);
},
function loadSuppliedMessage(callback) {
if(self.message) {
self.initHeaderFromMessage();
function setInitialData(callback) {
switch(self.editorMode) {
case 'view' :
if(self.message) {
self.initHeaderFromMessage();
}
break;
case 'edit' :
self.viewControllers.header.getView(1).setText(self.client.user.username); // from
break;
}
callback(null);
},
function setInitialFocus(callback) {