Make WordPress Core

Changeset 26515


Ignore:
Timestamp:
12/02/2013 01:50:24 AM (12 years ago)
Author:
dd32
Message:

Themes: For searches, replace the document hash, don't add a new history event for each keypress. See #25948

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/theme.js

    r26514 r26515  
    592592
    593593        // Update the URL hash
    594         if ( event.target.value )
    595             themes.router.navigate( 'search/' + event.target.value );
    596         else
     594        if ( event.target.value ) {
     595            themes.router.navigate( 'search/' + event.target.value, { replace: true } );
     596        } else {
    597597            themes.router.navigate( '' );
     598        }
    598599    }
    599600});
Note: See TracChangeset for help on using the changeset viewer.