Disable control sorting within sections
-
Hi guys,
I have a huge Theme Customizer with more than 3000 controls and I’m using jQuery UI to group and style them. The thing is that WordPress destroys my Customizer UI when it sorts controls within sections and I need to disable (unbind) this.
I need to unbind this part:
$( [ api.panel, api.section, api.control ] ).each( function ( i, values ) { var debouncedReflowPaneContents = _.debounce( api.reflowPaneContents, api.settings.timeouts.reflowPaneContents ); values.bind( 'add', debouncedReflowPaneContents ); values.bind( 'change', debouncedReflowPaneContents ); values.bind( 'remove', debouncedReflowPaneContents ); } );I need to override this code from my custom javaSript file which is responsible for Customizer UI. I know that if I increase “api.settings.timeouts.reflowPaneContents” time or if I unbind “values.bind( ‘add’, debouncedReflowPaneContents );” this will help but I don’t know how to do this.
1500+ Themeforest clients are waiting for this fix, this is URGENT. Please help!
Regards, Duke
The topic ‘Disable control sorting within sections’ is closed to new replies.