Skip to:
Content

BuddyPress.org

Changeset 5379


Ignore:
Timestamp:
11/26/2011 04:35:40 PM (13 years ago)
Author:
boonebgorges
Message:

Replaces onfocus javascript in directory search boxes with HTML5 placeholder text. References #3730. Props Ninos Ego

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-template.php

    r5301 r5379  
    593593
    594594    <form action="" method="get" id="search-blogs-form">
    595         <label><input type="text" name="s" id="blogs_search" value="<?php echo esc_attr( $search_value ) ?>"  onfocus="if (this.value == '<?php echo $default_search_value ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo $default_search_value ?>';}" /></label>
     595        <label><input type="text" name="s" id="blogs_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label>
    596596        <input type="submit" id="blogs_search_submit" name="blogs_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    597597    </form>
  • trunk/bp-forums/bp-forums-template.php

    r5377 r5379  
    13101310
    13111311    <form action="" method="get" id="search-forums-form">
    1312         <label><input type="text" name="s" id="forums_search" value="<?php echo esc_attr( $search_value ); ?>"  onfocus="if (this.value == '<?php echo $default_search_value ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo $default_search_value ?>';}" /></label>
     1312        <label><input type="text" name="s" id="forums_search" placeholder="<?php echo esc_attr( $search_value ); ?>" /></label>
    13131313        <input type="submit" id="forums_search_submit" name="forums_search_submit" value="<?php _e( 'Search', 'buddypress' ); ?>" />
    13141314    </form>
  • trunk/bp-groups/bp-groups-template.php

    r5330 r5379  
    22552255
    22562256    <form action="" method="get" id="search-groups-form">
    2257         <label><input type="text" name="s" id="groups_search" value="<?php echo esc_attr( $search_value ) ?>"  onfocus="if (this.value == '<?php echo $default_search_value ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo $default_search_value ?>';}" /></label>
     2257        <label><input type="text" name="s" id="groups_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label>
    22582258        <input type="submit" id="groups_search_submit" name="groups_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    22592259    </form>
  • trunk/bp-members/bp-members-template.php

    r5366 r5379  
    671671
    672672    <form action="" method="get" id="search-members-form">
    673         <label><input type="text" name="s" id="members_search" value="<?php echo esc_attr( $search_value ) ?>"  onfocus="if (this.value == '<?php echo $default_search_value ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo $default_search_value ?>';}" /></label>
     673        <label><input type="text" name="s" id="members_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label>
    674674        <input type="submit" id="members_search_submit" name="members_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    675675    </form>
Note: See TracChangeset for help on using the changeset viewer.