projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
597a051
)
Roo/form/ComboBox.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 11 Aug 2010 06:32:06 +0000
(14:32 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 11 Aug 2010 06:32:06 +0000
(14:32 +0800)
Roo/form/ComboBox.js
patch
|
blob
|
history
diff --git
a/Roo/form/ComboBox.js
b/Roo/form/ComboBox.js
index
f6a7bae
..
e14c06b
100644
(file)
--- a/
Roo/form/ComboBox.js
+++ b/
Roo/form/ComboBox.js
@@
-397,10
+397,18
@@
Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
{tag: 'img', src: Roo.BLANK_IMAGE_URL, cls: 'x-form-combo-add' });
this.addicon.on('click', function(e) {
- this.fireEvent('adderclick', this, e);
+ this.fireEvent('add', this, e);
+ }, this);
+ }
+ if (typeof(this.events.edit.listeners) != 'undefined') {
+
+ this.addicon = this.wrap.createChild(
+ {tag: 'img', src: Roo.BLANK_IMAGE_URL, cls: 'x-form-combo-edit' });
+
+ this.addicon.on('click', function(e) {
+ this.fireEvent('edit', this, e);
}, this);
}
-