Opened 10 years ago

Closed 8 years ago

#9083 closed defect (fixed)

dojox.editor.plugins.UploadImage Patch to wait for event before createFileInput

Reported by: Jaanus Heeringson Owned by: Mike Wilcox
Priority: high Milestone: 1.8
Component: Editor Version: 1.3.0
Keywords: ojox.editor.plugins.Upload, createFileInput Image, UploadImage, Cc: jaanus@…
Blocked By: Blocking:

Description

In some cases UploadImage? initiates FileUploader? before rendering is complete and the flash fails to load due to unability to get proper positioning data from the fake button. This modification adds the attribute renderEvent to UploadImage? that optionally can contain the name of the event that fires when it's safe to create the upload button.

_initButton:

if(this.renderEvent){
	dojo.subscribe(this.renderEvent, dojo.hitch(this, createFileInput"));
} else {
	setTimeout(dojo.hitch(this, "createFileInput"), 200);
}

alternatively we could just fire createFileInput when page is loaded:

dojo.addOnLoad(dojo.hitch(this, "createFileInput"));

Change History (3)

comment:1 Changed 10 years ago by bill

Milestone: tbdfuture
Owner: liucougar deleted

comment:2 Changed 8 years ago by bill

Owner: set to Mike Wilcox

comment:3 Changed 8 years ago by Mike Wilcox

Milestone: future1.8
Resolution: fixed
Status: newclosed

I believe this is a duplicate and fixed: http://trac.dojotoolkit.org/ticket/14576

Note: See TracTickets for help on using tickets.