SharePoint 2010 Ribbon Hide / {Show by library item Element or other event}

I'm branding for SharePoint 2010, and I hide the default feed and show when the user clicks the down arrow. The user can hide it again by clicking the hide icon. JQuery toggle and toggleClass work fine

    <div id="ribbonHide">
        <a class="toolTipHover" href="#">
            <div class="downArrowSmall" onclick="JavaScript:$('#s4-ribbonrow').toggle();$(this).toggleClass('downArrowSmall upArrowSmall');">
                <span class="ribbonHideToolTipOpen">Display the Ribbon</span><span class="ribbonHideToolTipClose">Hide the Ribbon</span>
            </div>
        </a>
    </div>

The problem is that the user clicks on the library element selector check box, the entire title bar disappears because it is replaced when the ribbon selects the Library tab / Library tab. But the tape is still hidden. There is also a title bar for the site.

Question: How can I listen to page events (any) that trigger a feed change so that I can display it again?

Thank!

+3
1

, . , div s4-titlerow CSS. .

, , , , show/hide script:

<div id="ribbonHide">
    <a class="toolTipHover" href="#">
        <div class="downArrowSmall" onclick="JavaScript:$('#s4-ribbonrow').toggle();$(this).toggleClass('downArrowSmall upArrowSmall');FixRibbonAndWorkspaceDimensions();">
            <span class="ribbonHideToolTipOpen">Display the Ribbon</span> <span class="ribbonHideToolTipClose">
                Hide the Ribbon</span>
        </div>
    </a>
</div>

!

+4

All Articles