Skip to content

Commit

Permalink
SAK-43000 Give assessment settings expand/collapse all functions cons…
Browse files Browse the repository at this point in the history
…istent icons and highlighting (sakaiproject#7764)
  • Loading branch information
brickatyourfeet authored Sep 4, 2020
1 parent d529824 commit 9708e85
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 29 deletions.
21 changes: 20 additions & 1 deletion samigo/samigo-app/src/webapp/js/authoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,4 +788,23 @@ function toggleCategories(checkbox) {
categoryDiv.fadeOut();
}
}
}
}

function expandAccordion(iframId){
$('div#jqueryui-accordion > .ui-accordion-content').show();
mySetMainFrameHeight(iframId);
$("#collapseLink").show();
$("#expandLink").hide();
$("div#jqueryui-accordion > h3.ui-accordion-header > span").removeClass("ui-icon-triangle-1-e").addClass("ui-icon-triangle-1-s");
$("div#jqueryui-accordion > h3.ui-accordion-header").addClass("ui-accordion-header-active ui-state-active");
}

function collapseAccordion(iframId){
$('.ui-accordion-content').hide();
mySetMainFrameHeight(iframId);
$("#collapseLink").hide();
$("#expandLink").show();
$("div#jqueryui-accordion > h3.ui-accordion-header > span").removeClass("ui-icon-triangle-1-s").addClass("ui-icon-triangle-1-e");
$("div#jqueryui-accordion > h3.ui-accordion-header").removeClass("ui-accordion-header-active ui-state-active");
}

15 changes: 0 additions & 15 deletions samigo/samigo-app/src/webapp/jsf/author/authorSettings.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,6 @@
nSelectedText: nSelectedText
});
});
function expandAccordion(iframId){
$('.ui-accordion-content').show();
mySetMainFrameHeight(iframId);
$("#collapseLink").show();
$("#expandLink").hide();
}
function collapseAccordion(iframId){
$('.ui-accordion-content').hide();
mySetMainFrameHeight(iframId);
$("#collapseLink").hide();
$("#expandLink").show();
}
</script>

</head>
Expand Down
13 changes: 0 additions & 13 deletions samigo/samigo-app/src/webapp/jsf/author/publishedSettings.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -185,19 +185,6 @@
checkUncheckTimeBox();
checkLastHandling();
});
function expandAccordion(iframId){
$('.ui-accordion-content').show();
mySetMainFrameHeight(iframId);
$("#collapseLink").show();
$("#expandLink").hide();
}
function collapseAccordion(iframId){
$('.ui-accordion-content').hide();
mySetMainFrameHeight(iframId);
$("#collapseLink").hide();
$("#expandLink").show();
}
</script>

</head>
Expand Down

0 comments on commit 9708e85

Please sign in to comment.