From 48a75e18c9f19d8aaf9f956a85701fd0b4771ba8 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 15 Feb 2007 14:49:35 +0000 Subject: r21367: Clear out the table with a deleted object contents after the record is deleted. Could be confusing otherwise. (This used to be commit 115a8658c647df1fdc8a38e555412e559065b890) --- webapps/swat/source/class/swat/module/ldbbrowse/Gui.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'webapps') diff --git a/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js b/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js index b819c2aab4..60bf1103bc 100644 --- a/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js +++ b/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js @@ -517,15 +517,18 @@ qx.Proto._displayDeleteResults = function(module, rpcRequest, type) var result = rpcRequest.getUserData("result"); var tree = module.fsm.getObject("tree"); - var node = tree.getDataModel().getData()[tree.getSelectedNodes()[0].parentNodeId]; + var dataModel = tree.getDataModel(); + var node = dataModel.getData()[tree.getSelectedNodes()[0].parentNodeId]; - tree.getDataModel().prune(node.nodeId, false); + dataModel.prune(node.nodeId, false); node.bOpened = false; tree.toggleOpened(node); alert("Object Successfully deleted!"); this._ldbmod.setBase(""); + // just clear the attribute/value table. + dataModel.setData([ ]); }; qx.Proto._displaySearchResults = function(module, rpcRequest) -- cgit