From db1077e3ed97701015ab81d2806c587c3a9e5676 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 25 Sep 2013 15:52:42 +0000 Subject: [PATCH] Fix extra change event firing which was breaking multiple file uploads --- etemplate/js/et2_widget_file.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/etemplate/js/et2_widget_file.js b/etemplate/js/et2_widget_file.js index 9af1fd8285..d00bb78da5 100644 --- a/etemplate/js/et2_widget_file.js +++ b/etemplate/js/et2_widget_file.js @@ -266,11 +266,8 @@ var et2_file = et2_inputWidget.extend( }, attachToDOM: function() { this._super.apply(this, arguments); - // Override parent's behaviour to fire legacy change when finished - if (this.onchange) - { - this.input.unbind("change.et2_inputWidget"); - } + // Override parent's change, file widget will fire change when finished uploading + this.input.unbind("change.et2_inputWidget"); }, getValue: function() { var value = this.options.value ? this.options.value : this.input.val();