From 3ceb11bea48e4b8f69013ad65e40e84e8158b975 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 23 Jul 2015 06:01:30 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/customize-nav-menus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/js/customize-nav-menus.js b/src/wp-admin/js/customize-nav-menus.js index 7b8fbf551a..b322bc03ab 100644 --- a/src/wp-admin/js/customize-nav-menus.js +++ b/src/wp-admin/js/customize-nav-menus.js @@ -156,13 +156,13 @@ visibleHeight = self.$el.find( '.accordion-section.open' ).height(); if ( ! self.loading && $( this ).scrollTop() > 3 / 4 * totalHeight - visibleHeight ) { var type = $( this ).data( 'type' ), - obj_type = $( this ).data( 'obj_type' ); + object = $( this ).data( 'object' ); if ( 'search' === type ) { if ( self.searchTerm ) { self.doSearch( self.pages.search ); } } else { - self.loadItems( type, obj_type ); + self.loadItems( type, object ); } } });