WordPress.org

Make WordPress Core

Changeset 33392


Ignore:
Timestamp:
07/23/2015 06:01:30 AM (6 years ago)
Author:
westonruter
Message:

Customizer: Update JS variable to reference renamed data attribute for available nav menu object.

Fixes regression for a change that was missed in [33366].

Props valendesigns.
Fixes #32708.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-nav-menus.js

    r33366 r33392  
    157157                if ( ! self.loading && $( this ).scrollTop() > 3 / 4 * totalHeight - visibleHeight ) {
    158158                    var type = $( this ).data( 'type' ),
    159                         obj_type = $( this ).data( 'obj_type' );
     159                        object = $( this ).data( 'object' );
    160160                    if ( 'search' === type ) {
    161161                        if ( self.searchTerm ) {
     
    163163                        }
    164164                    } else {
    165                         self.loadItems( type, obj_type );
     165                        self.loadItems( type, object );
    166166                    }
    167167                }
Note: See TracChangeset for help on using the changeset viewer.