svn commit: samba r22136 - in
branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse:
.
mimir at samba.org
mimir at samba.org
Mon Apr 9 12:06:43 GMT 2007
Author: mimir
Date: 2007-04-09 12:06:42 +0000 (Mon, 09 Apr 2007)
New Revision: 22136
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22136
Log:
Fix incorrect event handling.
Submitted by John Jorgensen <jorgensen.john at gmail.com>
rafal
Modified:
branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Fsm.js
branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js
Changeset:
Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Fsm.js
===================================================================
--- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Fsm.js 2007-04-09 10:38:55 UTC (rev 22135)
+++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Fsm.js 2007-04-09 12:06:42 UTC (rev 22136)
@@ -61,7 +61,7 @@
{
// Yup. Re-open the database
var dbName = fsm.getObject("dbName");
- dbName.dispatchEvent(new qx.event.type.Event("changeSelection"),
+ dbName.dispatchEvent(new qx.event.type.Event("changeSelected"),
true);
}
else
@@ -104,8 +104,14 @@
"changeSelection":
{
"tree" :
- "Transition_Idle_to_AwaitRpcResult_via_tree_selection_changed",
+ "Transition_Idle_to_AwaitRpcResult_via_tree_selection_changed"
+ },
+
+ // If another database is selected, try to open it and refresh
+ // the tree
+ "changeSelected":
+ {
"dbName":
"Transition_Idle_to_AwaitRpcResult_via_db_changed"
}
Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js
===================================================================
--- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js 2007-04-09 10:38:55 UTC (rev 22135)
+++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js 2007-04-09 12:06:42 UTC (rev 22136)
@@ -52,9 +52,9 @@
// Add our global database name (the only option, for now)
var item = new qx.ui.form.ListItem(module.dbFile);
o.add(item);
-
+
// We want to be notified if the selection changes
- o.addEventListener("changeSelection", fsm.eventListener, fsm);
+ o.addEventListener("changeSelected", fsm.eventListener, fsm);
// Save the database name object so we can react to changes
fsm.addObject("dbName", o);
More information about the samba-cvs
mailing list