Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

When the ribbon bar is visible (i.e., not in Browse mode), I want certain things to happen on my page (mostly involving changing styles of some items). How do I determine if it's visible or not or trigger off the event that the user changed the display state of it?

share|improve this question
add comment

1 Answer

You can try something like this. Take a look at this

$('#s4-ribbonrow').click(function(e) {
        if ($(e.target).hasClass('ms-cui-tt-span')) {
            if($(e.target).html() == 'Browse')
               alert('browse')
            if(RibbonIsMinimized()) {
               alert($(e.target).html());
            }
        }
    });
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.