projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
718a85e
)
examples/dialog/hello.js
author
Alan Knowles
<alan@akkbhome.com>
Sun, 12 Sep 2010 07:31:44 +0000
(15:31 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Sun, 12 Sep 2010 07:31:44 +0000
(15:31 +0800)
examples/dialog/hello.js
patch
|
blob
|
history
diff --git
a/examples/dialog/hello.js
b/examples/dialog/hello.js
index
1b76d2f
..
ad6d5c7
100644
(file)
--- a/
examples/dialog/hello.js
+++ b/
examples/dialog/hello.js
@@
-51,9
+51,13
@@
var HelloWorld = {
proxyDrag: true,
listeners : {
show : function() {
- Roo.log('show');
var p = this.layout.getRegion('center').getPanel(0);
p.setContent("Hello World");
+
+ },
+ keydown : function(dlg, e) {
+ var k = e.getKey();
+ if(k == 27){ _this.dialog.hide(); }
}
},
center : {
@@
-89,13
+93,7
@@
var HelloWorld = {
}
}
}
- ],
- listeners : {
- keydown : function(dlg, e) {
- var k = e.getKey();
- if(k == 27){ _this.dialog.hide(); }
- }
- }
+ ]
});