[wp-trac] [WordPress Trac] #10518: Make the post editing form file upload friendly
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 4 08:46:35 UTC 2009
#10518: Make the post editing form file upload friendly
----------------------------+-----------------------------------------------
Reporter: mark-k | Type: feature request
Status: new | Priority: low
Milestone: Future Release | Component: Media
Version: 2.8 | Severity: minor
Keywords: |
----------------------------+-----------------------------------------------
Comment(by Denis-de-Bernardy):
Replying to [comment:10 azaozz]:
> It is very easy to change all forms to this at the moment too:
> {{{
> add_action('admin_print_footer_scripts', 'my_form_type', 20);
> function my_form_type(){ ?>
> jQuery('form').attr('enctype', 'multipart/form-data');
> <?php
> }
> }}}
are you sure that works? I ask, because I know for a fact that this
doesn't:
{{{
add_action('admin_print_footer_scripts', 'my_form_type', 20);
function my_form_type() { ?>
<script>
jQuery(':text').attr('type', 'hidden');
</script>
<?php
}
}}}
when you try it, Safari spits out an error along the lines of "Can't
modify this attribute"
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10518#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list