Skip to:
Content

BuddyPress.org


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.