SHARE
TWEET

Untitled

a guest Jul 17th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.     (function () {
  3.  
  4.         var overrideCtx = {};
  5.         overrideCtx.Templates = {};
  6.         overrideCtx.Templates.OnPostRender = CustomRender;
  7.  
  8.         SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
  9.  
  10.     })();
  11.     function CustomRender(inCtx) {
  12.         if (inCtx.wpq.indexOf("WPQ3")) {
  13.             $('table.ms-listviewtable th:nth-child(4)', '#MSOZoneCell_WebPart' + inCtx.wpq + '').hide();
  14.             $('table.ms-listviewtable td:nth-child(4)', '#MSOZoneCell_WebPart' + inCtx.wpq + '').hide();
  15.  
  16.         }
  17.         else {
  18.             $('table.ms-listviewtable th:nth-child(5)', '#MSOZoneCell_WebPart' + inCtx.wpq + '').hide();
  19.             $('table.ms-listviewtable td:nth-child(5)', '#MSOZoneCell_WebPart' + inCtx.wpq + '').hide();
  20.         }
  21.     }
  22. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top