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. git-svn-id: https://develop.svn.wordpress.org/trunk@33392 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e74ecfc1c
commit
3ceb11bea4
@ -156,13 +156,13 @@
|
|||||||
visibleHeight = self.$el.find( '.accordion-section.open' ).height();
|
visibleHeight = self.$el.find( '.accordion-section.open' ).height();
|
||||||
if ( ! self.loading && $( this ).scrollTop() > 3 / 4 * totalHeight - visibleHeight ) {
|
if ( ! self.loading && $( this ).scrollTop() > 3 / 4 * totalHeight - visibleHeight ) {
|
||||||
var type = $( this ).data( 'type' ),
|
var type = $( this ).data( 'type' ),
|
||||||
obj_type = $( this ).data( 'obj_type' );
|
object = $( this ).data( 'object' );
|
||||||
if ( 'search' === type ) {
|
if ( 'search' === type ) {
|
||||||
if ( self.searchTerm ) {
|
if ( self.searchTerm ) {
|
||||||
self.doSearch( self.pages.search );
|
self.doSearch( self.pages.search );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self.loadItems( type, obj_type );
|
self.loadItems( type, object );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user