From cc90e5d6407d0e3c3db5af0c36bf634c5ae1a6a8 Mon Sep 17 00:00:00 2001 From: zefanja Date: Sun, 9 Feb 2014 20:17:08 +0700 Subject: * set RemoveButton disbaled when removing module --- source/moduleManagerDesktop.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/moduleManagerDesktop.js b/source/moduleManagerDesktop.js index c2ee1bd..fd57919 100644 --- a/source/moduleManagerDesktop.js +++ b/source/moduleManagerDesktop.js @@ -88,11 +88,13 @@ enyo.kind({ handleRemove: function (inSender, inEvent) { if(inEvent.originator && inEvent.originator.modKey) { + inEvent.originator.setDisabled(true); sword.installMgr.removeModule(inEvent.originator.modKey, enyo.bind(this, function (inError) { if(!inError) { this.doInstalled(); this.getModules(); } else { + inEvent.originator.setDisabled(false); this.handleError(inError); } })); -- cgit