mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
Fix extra change event firing which was breaking multiple file uploads
This commit is contained in:
parent
bc9c486e03
commit
db1077e3ed
@ -266,11 +266,8 @@ var et2_file = et2_inputWidget.extend(
|
|||||||
},
|
},
|
||||||
attachToDOM: function() {
|
attachToDOM: function() {
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
// Override parent's behaviour to fire legacy change when finished
|
// Override parent's change, file widget will fire change when finished uploading
|
||||||
if (this.onchange)
|
|
||||||
{
|
|
||||||
this.input.unbind("change.et2_inputWidget");
|
this.input.unbind("change.et2_inputWidget");
|
||||||
}
|
|
||||||
},
|
},
|
||||||
getValue: function() {
|
getValue: function() {
|
||||||
var value = this.options.value ? this.options.value : this.input.val();
|
var value = this.options.value ? this.options.value : this.input.val();
|
||||||
|
Loading…
Reference in New Issue
Block a user