Index: portal/portal-charon/charon/src/webapp/scripts/portalscripts.js =================================================================== --- portal/portal-charon/charon/src/webapp/scripts/portalscripts.js (revision 35211) +++ portal/portal-charon/charon/src/webapp/scripts/portalscripts.js (working copy) @@ -0,0 +1,46 @@ +/* Script for pop-up dhtml more tabs implementation + * uses jQuery library + */ +function dhtml_more_tabs() { + if ($('#selectNav').css('display') == 'none' ) { + // if the selectNav element is not a child of siteNav then we need to init the page + if ($('#selectNav').parent().attr('id') != 'siteNav') { + // make the selectNav div a child of the linkNav element for better positioning + $('div#selectNav').appendTo('#linkNav').addClass('dhtml_more_tabs'); + } + // show the dropdown + $('div#selectNav').css('top',$('#linkNav').height() - 3); // adjust the vertical position + $('div#selectNav').show(); + // highlight the more tab + $('.more-tab').addClass('more-active'); + // dim the current tab + $('.selectedTab').addClass('tab-dim'); + // mask the rest of the page + createDHTMLMask() ; + $('.more-tab').css('z-index',9800); + $('#selectNav').css('z-index',9900); + $('.selectedTab').bind('click',function(){dhtml_more_tabs();return false;}); + } else { + // unhighlight the more tab + $('.more-tab').removeClass('more-active'); + // hide the dropdown + $('div#selectNav').hide(); // hide the box + //undim the currently selected tab + $('.selectedTab').removeClass('tab-dim'); + removeDHTMLMask() + $('.selectedTab').unbind('click'); + } + return false; +} + +function createDHTMLMask() { + $('#container').append('
 
'); + $('#portalMask').css('height',browserSafeDocHeight()).css('width','100%').css('z-index',1000).bind("click",function(event){ + dhtml_more_tabs(); + return false; + }); +} + +function removeDHTMLMask() { + $('#portalMask').remove(); +} Index: portal/portal-impl/impl/src/bundle/sitenav.properties =================================================================== --- portal/portal-impl/impl/src/bundle/sitenav.properties (revision 35211) +++ portal/portal-impl/impl/src/bundle/sitenav.properties (working copy) @@ -9,6 +9,9 @@ sit_log = Logout sit_more = - more - +sit_more_tab = My Active Sites +sit_notermkey = Courses: No Term +sit_moretab_inst = Hidden Sites are not included in this menu. Access them in My Workspace -> Worksite Setup. sit_selectmessage = Press alt + up and down arrows to scroll through menu sit_mywor = My Workspace sit_worksite = worksite Index: portal/portal-render-engine-impl/pack/src/webapp/vm/defaultskin/macros.vm =================================================================== --- portal/portal-render-engine-impl/pack/src/webapp/vm/defaultskin/macros.vm (revision 35211) +++ portal/portal-render-engine-impl/pack/src/webapp/vm/defaultskin/macros.vm (working copy) @@ -311,7 +311,7 @@ #end #end #if ($tabsMoreSitesShow && $useDHTMLMore) -
  • ${rloader.sit_more}
  • +
  • ${rloader.sit_more_tab}
  • #end