On dashboard pages I often find I need more space. A quick way to do this is to place this into a Content Editor Web Part.
1 <script type='text/javascript'>
2
3 function v4MasterHideSidePanel() {
4 $('#s4-mainarea').children().eq(0).hide();
5 $('#s4-mainarea').children().eq(1).css('margin-left', '0');
6 }
7
8 $(document).ready(function(){
9 v4MasterHideSidePanel();
10 });
11
12 </script>
1 <script type='text/javascript'>
2
3 function v4MasterHideSidePanel() {
4 $('#s4-mainarea').children().eq(0).hide();
5 $('#s4-mainarea').children().eq(1).css('margin-left', '0');
6 }
7
8 $(document).ready(function(){
9 v4MasterHideSidePanel();
10 });
11
12 </script>
This will hide the Side Panel / Quick Launch area on the v4.master – Master Page (Default Master Page for non-publishing sites)
NB: This method relies on JQuery
No hay comentarios.:
Publicar un comentario