Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/26/2011 04:35:40 PM (14 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-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>
Note: See TracChangeset for help on using the changeset viewer.