/
Improve "inp_edit_swf_upload" block

Improve "inp_edit_swf_upload" block

Block "inp_edit_swf_upload" is used to display upload control on forms in the Admin Console.

Right now we're forced to add following code once-per-form to ensure that needed javascript code is loaded:

<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="<inp2:m_Compress files='js/uploader/upload_manager.js|js/uploader/uploader.js'/>"></script>

I think this is counter productive, because such code can be included automatically from "inp_edit_swf_upload" block itself.

P.S.

We've already tried that trick on several projects on Front-End and it worked.