Guest User

An approach to disable SharePoint 2010 page title row hiding

a guest
Mar 18th, 2013
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.  
  3.         ExecuteOrDelayUntilScriptLoaded(DisablePageTitleRowMinimize, "init.js");
  4.  
  5.         function DisablePageTitleRowMinimize() {
  6.             OnRibbonMinimizedChanged = function (ribbonMinimized) {
  7.                 ULSA13:;
  8.                 var ribbonElement = GetCachedElement("s4-ribbonrow");
  9.                 var titleElement = GetCachedElement("s4-titlerow");
  10.                 if (ribbonElement) {
  11.                     ribbonElement.className = ribbonElement.className.replace("s4-ribbonrowhidetitle", "");
  12.                     /*if(titleElement)
  13.                     {
  14.                         titleElement.className=titleElement.className.replace("s4-titlerowhidetitle", "");
  15.                         if (ribbonMinimized)
  16.                         {
  17.                             titleElement.style.display="block";
  18.                         }
  19.                         else
  20.                         {
  21.                             titleElement.style.display="none";
  22.                         }
  23.                     }*/
  24.                 }
  25.                 var wasInited = g_spribbon.isInited;
  26.                 g_spribbon.isInited = true;
  27.                 var lastState = g_spribbon.isMinimized;
  28.                 g_spribbon.isMinimized = ribbonMinimized;
  29.                 if (lastState != ribbonMinimized || !wasInited)
  30.                     FixRibbonAndWorkspaceDimensions();
  31.             }
  32.         }
  33.  
  34.     </script>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×