summaryrefslogtreecommitdiff
path: root/swat/esptest/registry.esp
diff options
context:
space:
mode:
authorDeryck Hodge <deryck@samba.org>2005-08-10 20:47:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:34 -0500
commitf870014fc31c25f35f8c42371106416c61aa17ed (patch)
tree8fa1db63dc29e04b26a014e5102f924364430e7c /swat/esptest/registry.esp
parent55024676c7ab56189bb7089bae1569e34dcdf458 (diff)
downloadsamba-f870014fc31c25f35f8c42371106416c61aa17ed.tar.gz
samba-f870014fc31c25f35f8c42371106416c61aa17ed.tar.bz2
samba-f870014fc31c25f35f8c42371106416c61aa17ed.zip
r9232: Rename some objects to make code clear.
deryck (This used to be commit 8a3445499e3f913693196aa1d1b5bbeec5469cf2)
Diffstat (limited to 'swat/esptest/registry.esp')
-rw-r--r--swat/esptest/registry.esp48
1 files changed, 24 insertions, 24 deletions
diff --git a/swat/esptest/registry.esp b/swat/esptest/registry.esp
index 6adeb78b81..b02def6f83 100644
--- a/swat/esptest/registry.esp
+++ b/swat/esptest/registry.esp
@@ -43,43 +43,43 @@ call.run();
<script type="text/javascript">
-function folder_list(t, list) {
+function folder_list(parent, list) {
var i;
- t.populated = true;
- t.removeAll();
+ parent.populated = true;
+ parent.removeAll();
for (i=0;i<list.length;i++) {
- var te;
- te = new QxTreeFolder(list[i]);
- t.add(te);
- te.binding = t.binding;
- if (t.reg_path == '\\\\') {
- te.reg_path = list[i];
+ var child;
+ child = new QxTreeFolder(list[i]);
+ parent.add(child);
+ child.binding = parent.binding;
+ if (parent.reg_path == '\\\\') {
+ child.reg_path = list[i];
} else {
- te.reg_path = t.reg_path + '\\\\' + list[i];
+ child.reg_path = parent.reg_path + '\\\\' + list[i];
}
- te.add(new QxTreeFolder('Working ...'));
- te.addEventListener("click", function() {
+ child.add(new QxTreeFolder('Working ...'));
+ child.addEventListener("click", function() {
var el = this; folder_click(el);
});
- t.setOpen(1);
+ parent.setOpen(1);
}
}
-function folder_click(t) {
- if (!t.populated) {
+function folder_click(node) {
+ if (!node.populated) {
server_call_url("@@request.REQUEST_URI", 'enum_path',
- function(list) { folder_list(t, list); },
- t.binding, t.reg_path);
+ function(list) { folder_list(node, list); },
+ node.binding, node.reg_path);
}
}
/* return a registry tree for the given server */
function registry_tree(binding) {
- var t = new QxTree("registry: " + binding);
- t.binding = binding;
- t.reg_path = "\\\\";
- t.populated = false;
- with(t)
+ var tree = new QxTree("registry: " + binding);
+ tree.binding = binding;
+ tree.reg_path = "\\\\";
+ tree.populated = false;
+ with(tree)
{
setBackgroundColor(255);
setBorder(QxBorder.presets.inset);
@@ -89,10 +89,10 @@ function registry_tree(binding) {
setHeight(400);
setTop(20);
}
- t.addEventListener("click", function() {
+ tree.addEventListener("click", function() {
var el = this; folder_click(el);
});
- return t;
+ return tree;
}
window.application.main = function()