projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
caafb8c
)
Roo/form/ComboBoxArray.js
author
Edward
<edward@roojs.com>
Thu, 7 May 2015 09:03:13 +0000
(17:03 +0800)
committer
Edward
<edward@roojs.com>
Thu, 7 May 2015 09:03:13 +0000
(17:03 +0800)
Roo/form/ComboBoxArray.js
patch
|
blob
|
history
diff --git
a/Roo/form/ComboBoxArray.js
b/Roo/form/ComboBoxArray.js
index
39b79f8
..
0569f25
100644
(file)
--- a/
Roo/form/ComboBoxArray.js
+++ b/
Roo/form/ComboBoxArray.js
@@
-37,6
+37,13
@@
Roo.form.ComboBoxArray = function(config)
{
this.addEvents({
Roo.form.ComboBoxArray = function(config)
{
this.addEvents({
+ /**
+ * @event beforeremove
+ * Fires before remove the value from the list
+ * @param {Roo.form.ComboBoxArray} _self This combo box array
+ * @param {Roo.form.ComboBoxArray.Item} item removed item
+ */
+ 'beforeremove' : true,
/**
* @event remove
* Fires when remove the value from the list
/**
* @event remove
* Fires when remove the value from the list
@@
-461,6
+468,7
@@
Roo.extend(Roo.form.ComboBoxArray.Item, Roo.BoxComponent, {
if(this.cb.disabled){
return;
}
if(this.cb.disabled){
return;
}
+
this.cb.items.remove(this);
this.el.child('img').un('click', this.remove, this);
this.el.remove();
this.cb.items.remove(this);
this.el.child('img').un('click', this.remove, this);
this.el.remove();