0

I want to know, what script drives the "screen options" animation toggle in WordPress.

I'm referring to the options menu that slides out when the admin clicks the "Screen Options" link near the upper right corner of the window in the Post, or Page, or Categories, etc. – and slides back in when the same link is clicked again.

Would appreciate it if someone knowledgeable could show me the exact location of that JavaScript code snippet.

1 Answer 1

1

This is in wp-admin/js/common.js or wp-admin/js/common.min.js:

// Scroll into view when focused
$('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){
    if ( e.target.scrollIntoView )
        e.target.scrollIntoView(false);
});

Found with a search for show-settings-link in the complete source. :)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.