diff --git a/o2web/source/o2_core/o2/widget/AttachmentController.js b/o2web/source/o2_core/o2/widget/AttachmentController.js index 9b973775ad899ab9b5f299e9dbb5015f724ef1cf..6c93e017ea2085ea9e8a4458688308f75c69e750 100644 --- a/o2web/source/o2_core/o2/widget/AttachmentController.js +++ b/o2web/source/o2_core/o2/widget/AttachmentController.js @@ -764,6 +764,7 @@ o2.widget.AttachmentController = o2.widget.ATTER = new Class({ }, uploadAttachment: function(e, node, files){ + debugger; if (this.module) this.module.uploadAttachment(e, node, files); }, doUploadAttachment: function(obj, action, invokeUrl, parameter, finish, every, beforeUpload, multiple, accept, size, failureEvery, files){ @@ -1099,7 +1100,9 @@ o2.widget.AttachmentController = o2.widget.ATTER = new Class({ this.uploadFileAreaNode.set("html", html); this.fileUploadNode = this.uploadFileAreaNode.getFirst(); - this.fileUploadNode.addEvent("change", uploadChange); + this.fileUploadNode.addEvent("change", function(){ + uploadChange(); + }); } this.fileUploadNode.set("accept", accept || "*/*"); this.fileUploadNode.set("multiple", (multiple!==false));