Skip to content

Commit

Permalink
SAK-26183 Allow multiple accordion syllabus items to be open at the s…
Browse files Browse the repository at this point in the history
…ame time

git-svn-id: https://source.sakaiproject.org/svn/syllabus/trunk@309125 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
Bryan Holladay committed May 2, 2014
1 parent e308f9e commit 3c2b093
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions syllabus/syllabus-app/src/webapp/js/syllabus.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,22 @@ function mySetMainFrameHeight(id, minHeight)
}

function expandAccordion(iframId){
$('.ui-accordion-content').show();
$('#accordion > div.ui-accordion').each(function(){
if(!$(this).find(".ui-accordion-content:first").is(":visible")){
$(this).find(".ui-accordion-header:first").click();
}
});
mySetMainFrameHeight(iframId);
$("#collapseLink").show();
$("#expandLink").hide();
}

function collapseAccordion(iframId){
$('.ui-accordion-content').hide();
$('#accordion > div.ui-accordion').each(function(){
if($(this).find(".ui-accordion-content:first").is(":visible")){
$(this).find(".ui-accordion-header:first").click();
}
});
mySetMainFrameHeight(iframId);
$("#collapseLink").hide();
$("#expandLink").show();
Expand Down

0 comments on commit 3c2b093

Please sign in to comment.