Index: lams_central/web/groupContents.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/groupContents.jsp,v diff -u -r1.13 -r1.14 --- lams_central/web/groupContents.jsp 14 Feb 2012 18:56:55 -0000 1.13 +++ lams_central/web/groupContents.jsp 1 Mar 2012 08:45:50 -0000 1.14 @@ -16,35 +16,74 @@ - - true -

" class="j-single-lesson"> - - " class="disabled-sequence-name-link"> - - - " href="" class="sequence-name-link"> - - " >  - " >  - " >  - " >  - - - - - - - - - - - - - - -

-
+ + + true + " class="j-single-lesson"> + + + + + + + + + + + +
+ + + " class="disabled-sequence-name-link"> + + + " href="" class="sequence-name-link"> + + + + " >  + " >  + " >  + " >  + + +
@@ -74,31 +113,72 @@
" class="j-subgroup-lessons"> true -

" class="j-single-subgroup-lesson"> - - " class="disabled-sequence-name-link"> - - - " href="" class="sequence-name-link"> - - " >  - " >  - " >  - " >  - - - - - - - - - - - - - -

+ + " class="j-single-subgroup-lesson"> + + + + + + + + + + + +
+ + + " class="disabled-sequence-name-link"> + + + " href="" class="sequence-name-link"> + + + + " >  + " >  + " >  + " >  + + +
Index: lams_central/web/main.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/main.jsp,v diff -u -r1.44 -r1.45 --- lams_central/web/main.jsp 13 Nov 2009 03:13:52 -0000 1.44 +++ lams_central/web/main.jsp 1 Mar 2012 08:45:50 -0000 1.45 @@ -27,6 +27,7 @@ + @@ -58,6 +59,23 @@ $.get("${disableAllTutorialVideosUrl}"); } + + $(".split-menu-button li em").live("click", function(event) { + var hidden = $(this).parents("li").children("ul").is(":hidden"); + $(this).parents("li").children("ul").hide(); + $(this).parents("li").children("a").removeClass("zoneCur"); + + if (hidden) { + $(this) + .parents("li").children("ul").toggle() + .parents("li").children("a").addClass("zoneCur"); + } + + event.stopPropagation(); + }); + $("html").click(function() { + $(".split-menu-button>ul>li>ul").hide(); + }); }); function getEnableSortingText() { Index: lams_central/web/css/buttonMenuSplit.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/css/Attic/buttonMenuSplit.css,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_central/web/css/buttonMenuSplit.css 1 Mar 2012 08:45:50 -0000 1.1 @@ -0,0 +1,61 @@ +/* +.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ +.ui-widget { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1.1em/*{fsDefault}*/; } +.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3/*{borderColorDefault}*/; background: #e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #555555/*{fcDefault}*/; } +.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; -khtml-border-top-left-radius: 4px/*{cornerRadius}*/; border-top-left-radius: 4px/*{cornerRadius}*/; } + +*/ + +.split-menu-button { + } + .split-menu-button ul { + } + .split-menu-button ul li { + position: relative; + float: left; + list-style-type: none; + } + .split-menu-button ul li:hover { + /* background: url(http://shaun.lamsfoundation.org/lams/images/incons/bullet_arrow_down.png) center left no-repeat; */ + background-color: yellow; + } + .split-menu-button ul li a { + border-bottom: none; + display: block; + float: left; + position: relative; + color: #383838; + font-weight: bold; + text-decoration: none; + } + .split-menu-button ul li a:hover, #zone-bar ul li a.zoneCur { + /* background: url(http://shaun.lamsfoundation.org/lams/images/incons/bullet_arrow_down.png) center right no-repeat; */ + background-color: yellow; + } + .split-menu-button ul li ul { + display: none; + position: absolute; + top: 22px; + left: -20px; + border: 1px solid #ccc; + background: white; + z-index: 1; + } + .split-menu-button ul li ul li { + float: none; + padding: 0; margin: 0; + height: 20px; + } + .split-menu-button ul li ul li:hover { + background: none; + } + .split-menu-button ul li ul li a { + display: block; + float: none; + margin-left: 5px; + width: 180px; + } + .split-menu-button ul li ul li a:hover { + /* background: #d9f0b7; */ + } +} Index: lams_central/web/includes/javascript/groupDisplay.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/groupDisplay.js,v diff -u -r1.10 -r1.11 --- lams_central/web/includes/javascript/groupDisplay.js 9 Jul 2009 08:47:32 -0000 1.10 +++ lams_central/web/includes/javascript/groupDisplay.js 1 Mar 2012 08:45:50 -0000 1.11 @@ -160,10 +160,10 @@ jQuery(element).height()], onStop: function() { var ids = []; - jQuery(this).parent().children("p").each(function(i, element) { + jQuery(this).siblings("tr").each(function(i, element) { ids.push(element.id); }); - var jLessonsId = jQuery(this).parent().attr("id"); + var jLessonsId = jQuery(this).parents("div[class$='lessons']").attr("id"); var dashIndex = jLessonsId.indexOf("-"); var orgId = (dashIndex>0 ? jLessonsId.substring(0, dashIndex) : jLessonsId); jQuery.ajax({