summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2007-02-15 14:49:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:21 -0500
commit48a75e18c9f19d8aaf9f956a85701fd0b4771ba8 (patch)
tree80f20deb0a15607937fa4d4a43d118ee30f2429a
parentbc9939430ed38b861c7d98dbe4adb2b664135d00 (diff)
downloadsamba-48a75e18c9f19d8aaf9f956a85701fd0b4771ba8.tar.gz
samba-48a75e18c9f19d8aaf9f956a85701fd0b4771ba8.tar.bz2
samba-48a75e18c9f19d8aaf9f956a85701fd0b4771ba8.zip
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)
-rw-r--r--webapps/swat/source/class/swat/module/ldbbrowse/Gui.js7
1 files changed, 5 insertions, 2 deletions
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)