Changeset 3439
- Timestamp:
- 12/06/11 14:48:27
- Files:
-
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/calendarList.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/css/bwTheme.css (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/javascript/bedework.js (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/subscriptions.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/themeSettings.xsl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/calendarList.xsl
r2995 r3439 58 58 <xsl:variable name="calPath" select="path"/> 59 59 <xsl:variable name="displayName" select="summary"/> 60 <a href="{$setSelection}&virtualPath={$virtualPath}&setappvar=curCollection({$displayName}) " title="view calendar">60 <a href="{$setSelection}&virtualPath={$virtualPath}&setappvar=curCollection({$displayName})&setappvar=curPath({$calPath})" title="view calendar"> 61 61 <xsl:value-of select="summary"/> 62 62 </a> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/css/bwTheme.css
r3431 r3439 432 432 #subsTree { 433 433 margin: 1em 0 0 1em; 434 font-size: 14px; 434 435 } 435 436 #subsTree ul li li { 436 margin: 0 0 0 2em; 437 margin: 0 0 0 20px; 438 } 439 #subsTree li.hasChildren { 440 margin: 0 0 0 10px; 441 } 442 #subsTree li.selected { 443 font-weight: bold; 444 } 445 #subsTree li.closed ul { 446 display: none; 447 } 448 #subsTree a { 449 color: #335080; 450 } 451 #subsTree a:hover { 452 color: #DDB500; 453 } 454 #subsTree .subsTreeToggle { 455 display: block; 456 float: left; 457 width: 10px; 458 height: 10px; 459 text-align: center; 460 vertical-align: middle; 461 cursor: pointer; 437 462 } 438 463 ul.sideLinksExpand { trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/javascript/bedework.js
r3431 r3439 58 58 // Using the subscriptions tree for navigation (as defined in themeSettings.xsl). 59 59 // Get them and load them onto the page. 60 function loadSubscriptions(containerId) { 61 $.getJSON('/feeder/calendar/fetchPublicCalendars.do?skinName=widget-json-cals', function(data) { 62 var subsTree = '<ul>' + buildSubsTree(data.bwCals.calendars) + '</ul>'; 60 function loadSubscriptions(containerId,setSelectionAction,curPath) { 61 var feederUrl = '/feeder/calendar/fetchPublicCalendars.do?skinName=widget-json-cals&setappvar=setSelectionAction(' + setSelectionAction + ')'; 62 $.getJSON(feederUrl, function(data) { 63 var subsTree = '<ul>' + buildSubsTree(data.bwCals.calendars,true,curPath) + '</ul>'; 63 64 $(containerId).html(subsTree); 65 $("#subsTree .subsTreeToggle").click(function() { 66 $(this).parent("li").children("ul").toggle("fast"); 67 }); 64 68 }); 65 69 } 66 function buildSubsTree(calObj ) {70 function buildSubsTree(calObj,isRoot,curPath) { 67 71 var subsTreeHtml = ""; 72 68 73 $.each(calObj,function(i) { 69 74 if (this.calType < 2) { // show only calendars and folders 70 subsTreeHtml += "<li>" + this.name; 75 if (isRoot) { 76 subsTreeHtml += '<li><a href="' + this.calendarLink + '">All</a>'; 77 } else { 78 // build the child tree 79 if(this.children != undefined) { 80 //alert(curPath + "\n" + decodeURI(this.virtualPath) + "\n" + curPath.indexOf(decodeURI(this.virtualPath))); 81 // see if we have the selected item 82 var itemClass = ""; 83 if (curPath == decodeURI(this.virtualPath)) { 84 itemClass = ' class="hasChildren selected open"'; 85 } else if (curPath.indexOf(decodeURI(this.virtualPath)) > -1) { 86 itemClass = ' class="hasChildren selectedPath open"'; 87 } else { 88 itemClass = ' class="hasChildren closed"'; 89 } 90 subsTreeHtml += '<li'+ itemClass +'><span class="subsTreeToggle">+</span>'; 91 } else { 92 var itemClass = ""; 93 if (curPath == decodeURI(this.virtualPath)) { 94 itemClass = ' class="selected"'; 95 } 96 subsTreeHtml += '<li'+ itemClass +'>'; 97 } 98 subsTreeHtml += '<a href="' + this.calendarLink + '">' + this.name + '</a>'; 99 } 71 100 if(this.children != undefined) { 72 101 subsTreeHtml += "<ul>"; 73 subsTreeHtml += buildSubsTree(this.children );102 subsTreeHtml += buildSubsTree(this.children,false,curPath); 74 103 subsTreeHtml += "</ul>"; 75 104 } trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/subscriptions.xsl
r3431 r3439 32 32 $(document).ready(function(){ 33 33 // get the subscriptions/calendars and load them into the tree 34 loadSubscriptions("#subsTree" );34 loadSubscriptions("#subsTree","<xsl:value-of select="$setSelection"/>","<xsl:value-of select="/bedework/selectionState/collection/virtualpath"/>"); 35 35 }); 36 36 </script> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/themeSettings.xsl
r3433 r3439 294 294 295 295 <!-- NOT YET ENABLED --> 296 <!-- the following features did not make the 3. 6release, and are here296 <!-- the following features did not make the 3.8 release, and are here 297 297 for reference --> 298 298 … … 308 308 <!-- <xsl:variable name="deadlinesAlwaysDisplayed">true</xsl:variable> --> 309 309 310 311 <!-- VIEW HIERARCHY -->312 <!-- force views into a heirarchy? -->313 <!-- <xsl:variable name="childViewsEnabled">true</xsl:variable> -->314 315 310 <!-- FOR ONGOING EVENTS --> 316 <!-- pull events longer than day range into ongoing list? --> 311 <!-- pull normal events that are longer than day range into ongoing list? --> 312 <!-- (this automates the use of ongoing - tagging not needed) --> 317 313 <!-- <xsl:variable name="ongoingEventsUseDayRange">false</xsl:variable> --> 318 314 <!-- <xsl:variable name="ongoingEventsDayRange">12</xsl:variable> -->
