* VC.setFocus(): Attaches/detaches events/etc.

This commit is contained in:
Bryan Ashby 2015-07-08 22:34:40 -06:00
parent f348e06d86
commit 65ad2ffdd1
3 changed files with 13 additions and 15 deletions

View file

@ -199,7 +199,7 @@ function FullScreenEditorModule(options) {
self.updateTextEditMode(bodyView.getTextEditMode());
self.updateEditModePosition(bodyView.getEditPosition());
self.viewControllers.body.removeFocus(); // :TODO: Change vc to allow *not* setting focus @ create
self.viewControllers.body.setFocus(false);
self.viewControllers.header.switchFocus(1);
}
);
@ -234,7 +234,7 @@ function FullScreenEditorModule(options) {
this.menuMethods = {
headerSubmit : function(formData, extraArgs) {
self.viewControllers.header.removeFocus();
self.viewControllers.header.setFocus(false);
self.viewControllers.body.switchFocus(1);
self.getBodyView().on('edit position', function cursorPosUpdate(pos) {
@ -253,7 +253,7 @@ function FullScreenEditorModule(options) {
// :TODO:... what now?
console.log(err)
} else {
self.viewControllers.body.removeFocus();
self.viewControllers.body.setFocus(false);
self.viewControllers.footerEditMenu.switchFocus(1);
}
});