diff options
author | ctrlaltca@gmail.com <> | 2012-03-24 21:28:08 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2012-03-24 21:28:08 +0000 |
commit | fd1a685c494bc183adae9b1748ee79e66c4ff7c2 (patch) | |
tree | a5f4179b4eb7efc57edcd9ce9c926077c5f3ea24 /framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js | |
parent | e0de4ef01a644bccae872f60b3584a1755dcbc1f (diff) |
committed alternative patch for #181
Diffstat (limited to 'framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js')
-rwxr-xr-x | framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js b/framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js index e25b5bed..b16179c0 100755 --- a/framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js +++ b/framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js @@ -1,6 +1,6 @@ -Prado.WebUI.TActiveFileUpload = Base.extend( +Prado.WebUI.TActiveFileUpload = Class.create(Prado.WebUI.Control, { - constructor : function(options) + onInit : function(options) { this.options = options || {}; Prado.WebUI.TActiveFileUpload.register(this); @@ -13,11 +13,9 @@ Prado.WebUI.TActiveFileUpload = Base.extend( this.complete = $(options.completeID); this.error = $(options.errorID); - Prado.Registry.set(options.inputID, this); - // set up events if (options.autoPostBack){ - Event.observe(this.input,"change",this.fileChanged.bind(this)); + this.observe(this.input,"change",this.fileChanged.bind(this)); } }, @@ -74,9 +72,12 @@ Prado.WebUI.TActiveFileUpload = Base.extend( } } -}, +}); + +Object.extend(Prado.WebUI.TActiveFileUpload, { -// class methods + //class methods + controls : {}, register : function(control) |