svn commit: samba r9232 - in branches/SAMBA_4_0/swat/esptest: .
deryck at samba.org
deryck at samba.org
Wed Aug 10 20:47:04 GMT 2005
Author: deryck
Date: 2005-08-10 20:47:03 +0000 (Wed, 10 Aug 2005)
New Revision: 9232
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9232
Log:
Rename some objects to make code clear.
deryck
Modified:
branches/SAMBA_4_0/swat/esptest/registry.esp
Changeset:
Modified: branches/SAMBA_4_0/swat/esptest/registry.esp
===================================================================
--- branches/SAMBA_4_0/swat/esptest/registry.esp 2005-08-10 20:33:23 UTC (rev 9231)
+++ branches/SAMBA_4_0/swat/esptest/registry.esp 2005-08-10 20:47:03 UTC (rev 9232)
@@ -43,43 +43,43 @@
<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 @@
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()
More information about the samba-cvs
mailing list