modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/Table.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 3a81b7be6c2a86d41908e3df74d504c6b2133877 Author: Mike Thompson mithomps@redhat.com Date: Tue Oct 1 14:35:21 2013 -0700
[BZ 1014292] - Cancelling the confirmation dialog causes that buttons become inactive. The third state of SC.ask -> BooleanCallback(confirm) was not being handled. It can also be null when the close [x] button is hit. A refreshTableInfo was added to properly handle this state.
diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/Table.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/Table.java index 9aeef30..91f836c 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/Table.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/table/Table.java @@ -595,7 +595,10 @@ public class Table<DS extends RPCDataSource> extends EnhancedHLayout implements
SC.ask(message, new BooleanCallback() { public void execute(Boolean confirmed) { - if (confirmed) { + if(null == confirmed){ + refreshTableInfo(); + }else if (confirmed) { + refreshTableInfo(); tableAction.action.executeAction(listGrid.getSelectedRecords(), null); } else { refreshTableInfo();
rhq-commits@lists.fedorahosted.org