From 4bebba6d4657308be57c27bf4f288000f9487da0 Mon Sep 17 00:00:00 2001 From: zefanja Date: Sun, 9 Feb 2014 20:10:25 +0700 Subject: * improved desktop's module manager (added option to remove modules) --- lib/sword | 2 +- source/main.js | 7 ++++- source/moduleManagerDesktop.js | 63 ++++++++++++++++++++++++++++++++++++------ 3 files changed, 61 insertions(+), 11 deletions(-) diff --git a/lib/sword b/lib/sword index 53f5983..a20e9fb 160000 --- a/lib/sword +++ b/lib/sword @@ -1 +1 @@ -Subproject commit 53f59836311923f446e26733c5dc2f4b29eede9a +Subproject commit a20e9fb0dbbc894dbe087b9b31df759fb2e866bd diff --git a/source/main.js b/source/main.js index 1f140a1..aa166cf 100644 --- a/source/main.js +++ b/source/main.js @@ -288,8 +288,13 @@ enyo.kind({ } this.handleUserData(this.currentPassage.osis); this.renderHistory(); - } else + } else { + if(inError.code && inError.code === 123) { + //handle old internal module format + } this.handleError(inError.message); + } + }) ); }, diff --git a/source/moduleManagerDesktop.js b/source/moduleManagerDesktop.js index 0bd63c0..c2ee1bd 100644 --- a/source/moduleManagerDesktop.js +++ b/source/moduleManagerDesktop.js @@ -14,7 +14,7 @@ enyo.kind({ {content: $L("Module Manager")} //{kind: "onyx.IconButton", src: "assets/delete.png", ontap: "clearDB"} ]}, - {classes: "center", components: [ + {kind: "enyo.Scroller", fit: true, classes: "center settings-container", components: [ {content: $L("Download a zipped module from one of the following repositories:")}, {allowHtml: true, content: "