projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
654839c
)
Roo/form/ComboBox.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 11 Aug 2010 07:03:52 +0000
(15:03 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 11 Aug 2010 07:03:52 +0000
(15:03 +0800)
Roo/form/ComboBox.js
patch
|
blob
|
history
diff --git
a/Roo/form/ComboBox.js
b/Roo/form/ComboBox.js
index
99e8707
..
0373ad6
100644
(file)
--- a/
Roo/form/ComboBox.js
+++ b/
Roo/form/ComboBox.js
@@
-70,7
+70,7
@@
Roo.form.ComboBox = function(config){
* @event add
* Fires when the 'edit' icon is pressed (add a listener to enable add button)
* @param {Roo.form.ComboBox} combo This combo box
* @event add
* Fires when the 'edit' icon is pressed (add a listener to enable add button)
* @param {Roo.form.ComboBox} combo This combo box
- * @param {Roo.data.Record
} record The data record returned from the underlying store (or false on clear
)
+ * @param {Roo.data.Record
|false} record The data record returned from the underlying store (or false on nothing selected
)
*/
'edit' : true
*/
'edit' : true
@@
-413,10
+413,10
@@
Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
this.editicon.setStyle('margin-left', '40px');
}
this.editicon.on('click', function(e) {
this.editicon.setStyle('margin-left', '40px');
}
this.editicon.on('click', function(e) {
- if (this.lastData) {
-
// should we fire if
nothing is selected..
-
this.fireEvent('edit', this, this.lastData );
- }
+
+
// we fire even if i
nothing is selected..
+ this.fireEvent('edit', this, this.lastData );
+
}, this);
}
}, this);
}