Closed nlegg closed 13 years ago
Can you tell me how to trigger this code? I can't find where the message should be displayed once your patch is applied.
Thanks,
Theory
Sure. First, load the "Select Related Media" dialog (actually just a pop-up window) by clicking the "Edit" button on a media relation. As long as RELATED_MEDIA_UPLOAD is enabled in your config, this dialog window has the "Or upload as" drop-down menu, a "Choose File" file chooser button, and the "Create" button. My patch just added an 'empty' entry in the drop-down menu so you have to consciously select something. If you click "Create" without selecting a media type and/or without using the file chooser to select a file, the "Select Related Media" dialog window reloads with the corresponding status message at the top.
Hope that helps.
-Nick
On Apr 19, 2011, at 6:25 AM, nlegg wrote:
Sure. First, load the "Select Related Media" dialog (actually just a pop-up window) by clicking the "Edit" button on a media relation. As long as RELATED_MEDIA_UPLOAD is enabled in your config, this dialog window has the "Or upload as" drop-down menu, a "Choose File" file chooser button, and the "Create" button. My patch just added an 'empty' entry in the drop-down menu so you have to consciously select something. If you click "Create" without selecting a media type and/or without using the file chooser to select a file, the "Select Related Media" dialog window reloads with the corresponding status message at the top.
Ah, got it. Thanks. Will apply.
David
Applied, thanks!
Added status messages to media upload dialog. Also added a 'blank' default media type selection.