Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 949f04e

Browse files
committed
Merge pull request #11 from KevinVlaanderen/master
Fix buttons that are only enabled when one or more items are selected
2 parents 5b986af + c28330b commit 949f04e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dist/TreeView.mpk

14 Bytes
Binary file not shown.

src/TreeView/widget/GridView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ mxui.widget.declare("TreeView.widget.GridView", {
235235
callback : dojo.hitch(this, this.onSelect, item),
236236
error : this.showError
237237
}, this);
238-
}
238+
} else {
239+
this.showError(item);
240+
}
239241
},
240242

241243
hasSelection : function() {

test/widgets/TreeView.mpk

14 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)