diff options
author | zefanja <zefanja@freenet.de> | 2014-04-12 14:27:27 +0700 |
---|---|---|
committer | zefanja <zefanja@freenet.de> | 2014-04-12 14:27:27 +0700 |
commit | 01df8de99bff929303b2df76d3997c90a6981641 (patch) | |
tree | b356bc5687138e358faedb193f8e29ee8240cd86 /source/App.js | |
parent | 5d2e8d71e06e9a81022a8b9b0e7cc11595e0b40d (diff) | |
download | biblez-ng-01df8de99bff929303b2df76d3997c90a6981641.tar.gz |
* fixed serveral small bugs
* reduced calls to database
Diffstat (limited to 'source/App.js')
-rw-r--r-- | source/App.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/App.js b/source/App.js index 1d01664..b682a83 100644 --- a/source/App.js +++ b/source/App.js @@ -21,10 +21,11 @@ enyo.kind({ onOpenAbout: "openAbout" }, {name: "bcSelector", kind: "biblez.bcSelector", onSelect: "handlePassageSelect", onBack: "handleBack"}, + {name: "notes", kind: "biblez.notes", onBack: "handleBack", onChange: "handleNote"} /*{name: "moduleManager", kind: "biblez.moduleManager", onBack: "handleBack", onInstalled: "handleInstalledModule"}, {name: "moduleManagerDesktop", kind: "biblez.moduleManagerDesktop", onBack: "handleBack", onInstalled: "handleInstalledModule"}, {name: "settings", kind: "biblez.settings", onBack: "handleBack", onChange: "handleSettings"}, - {name: "notes", kind: "biblez.notes", onBack: "handleBack", onChange: "handleNote"}, + {name: "dataView", kind: "biblez.dataView", onBack: "handleBack", onVerse: "handleVerse"}, {name: "about", kind: "biblez.about", onBack: "handleBack"}*/ ]} @@ -32,7 +33,7 @@ enyo.kind({ handleBack: function (inSender, inEvent) { this.$.panel.selectPanelByName("main"); - if(inSender.name !== "bcSelector" && inSender.name !== "notes" && inSender.name !== "settings" && inSender.name !== "dataView") + if(inSender.name !== "bcSelector" && inSender.name !== "notes") enyo.asyncMethod(inSender, "destroy"); return true; }, @@ -80,12 +81,12 @@ enyo.kind({ handleSettings: function (inSender, inEvent) { this.$.main.handleSettings(inSender, inEvent); - enyo.asyncMethod(inSender, "destroy"); + enyo.asyncMethod(this.$.settings, "destroy"); this.$.panel.selectPanelByName("main"); }, openNotes: function (inSender, inEvent) { - this.$.panel.createComponent({name: "notes", kind: "biblez.notes", onBack: "handleBack", onChange: "handleNote"}, {owner: this}).render(); + //this.$.panel.createComponent({name: "notes", kind: "biblez.notes", onBack: "handleBack", onChange: "handleNote"}, {owner: this}).render(); this.$.notes.setOsisRef(inEvent.osisRef); this.$.notes.setNoteId(inEvent.noteId); this.$.panel.selectPanelByName("notes"); @@ -93,7 +94,6 @@ enyo.kind({ handleNote: function (inSender, inEvent) { this.$.main.handleNote(inSender, inEvent); - enyo.asyncMethod(inSender, "destroy"); this.$.panel.selectPanelByName("main"); return true; }, |