WordPress.org

Make WordPress Core

Changeset 28047


Ignore:
Timestamp:
04/08/2014 12:34:10 PM (5 years ago)
Author:
ocean90
Message:

Theme Installer: Prevent default events for "Upload Theme" and "Browse" buttons.

see #27055.

File:
1 edited

Legend:

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

    r28045 r28047  
    14761476
    14771477    uploader: function() {
    1478         $( 'a.upload' ).on( 'click', function() {
     1478        $( 'a.upload' ).on( 'click', function( event ) {
     1479            event.preventDefault();
    14791480            $( 'body' ).addClass( 'show-upload-theme' );
    14801481            themes.router.navigate( themes.router.baseUrl( '?upload' ), { replace: true } );
    14811482        });
    1482         $( 'a.browse-themes' ).on( 'click', function() {
     1483        $( 'a.browse-themes' ).on( 'click', function( event ) {
     1484            event.preventDefault();
    14831485            $( 'body' ).removeClass( 'show-upload-theme' );
    14841486            themes.router.navigate( themes.router.baseUrl( '' ), { replace: true } );
Note: See TracChangeset for help on using the changeset viewer.