Skip to:
Content

BuddyPress.org

Changeset 7012


Ignore:
Timestamp:
05/07/2013 01:57:45 PM (13 years ago)
Author:
boonebgorges
Message:

When creating a new profile field, set focus to Field Title on page load

This reduces the amount of mouse movement needed to get started editing, and
makes mouseless navigation possible.

Location:
trunk/bp-xprofile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/admin/js/admin.js

    r7011 r7012  
    110110jQuery( document ).ready( function() {
    111111
     112        // Set focus in Field Title, if we're on the right page
     113        jQuery( '#bp-xprofile-add-field #title' ).focus();
     114       
    112115        // Set up deleting options ajax
    113116        jQuery( 'a.ajax-option-delete' ).on( 'click', function() {
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r6775 r7012  
    846846                        <?php endif; ?>
    847847
    848                         <form action="<?php echo esc_url( $action ); ?>" method="post">
     848                        <form id="bp-xprofile-add-field" action="<?php echo esc_url( $action ); ?>" method="post">
    849849                                <div id="poststuff">
    850850                                        <div id="titlediv">
Note: See TracChangeset for help on using the changeset viewer.