[wp-trac] [WordPress Trac] #32055: Filesystem Credentials Request Modal: Inline JavaScript focuses every first input of a form
WordPress Trac
noreply at wordpress.org
Wed Apr 22 11:55:12 UTC 2015
#32055: Filesystem Credentials Request Modal: Inline JavaScript focuses every first
input of a form
----------------------------+-------------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Filesystem API | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: ui |
----------------------------+-------------------------
Originally reported by sergej.mueller:
When `wp_print_request_filesystem_credentials_modal()` is called and
credentials are required `request_filesystem_credentials()` is printed.
That includes some inline JavaScript:
{{{
<script type="text/javascript">
<!--
jQuery(function($){
jQuery("#ssh").click(function () {
jQuery("#ssh_keys").show();
});
jQuery("#ftp, #ftps").click(function () {
jQuery("#ssh_keys").hide();
});
jQuery('form input[value=""]:first').focus();
});
-->
</script>
}}}
The last line will focus every first input of a form. On wp-
admin/plugins.php this will be the search input.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32055>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list