Skip to content

Commit

Permalink
Merge pull request #23 from indiana-university/LMSA-9028
Browse files Browse the repository at this point in the history
LMSA-9028 remove spinner for unavailable courses
  • Loading branch information
mrw-iu authored Dec 1, 2023
2 parents 3e9a75a + 5988c86 commit 58475e7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
3 changes: 1 addition & 2 deletions src/main/resources/static/css/crosslisting.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
white-space: nowrap;
}

#loading, #unavailable-loading {
#loading {
display: none;
}

Expand Down Expand Up @@ -86,7 +86,6 @@
#addTerms {
font-weight: inherit;
font-size: inherit;
margin: 1.0rem 0 1.2rem;
}

/* override the rivet style */
Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/static/js/crosslisting.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,6 @@ function loadUnavailableSections() {

loadDiv.empty();

$("#unavailable-loading").show();

var displayedTerms = [];

var activeTerm = $('#active-term');
Expand All @@ -329,8 +327,6 @@ function loadUnavailableSections() {
if (xhr.status == 403) {
window.location.replace("error");
}

$("#unavailable-loading").hide();
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/fragments/termData.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<body>
<div th:fragment="termData">
<h3 id="active-term" th:data-active-term-id = "${activeTerm.id}" th:text="${activeTerm.name}">(Active Term Name)</h3>
<div class="rvt-p-left-md rvt-prose">
<div class="rvt-p-left-md rvt-prose rvt-m-bottom-sm">
<p th:if="${#lists.isEmpty(activeCourseSections)}">None available</p>
<ul th:unless="${#lists.isEmpty(activeCourseSections)}" class="sectionsList rvt-list-plain">
<li th:id="'row_' + ${section.sectionId}" th:each="section : ${activeCourseSections}" th:class="${section.getAppropriateCssClass()}"
Expand Down Expand Up @@ -88,7 +88,7 @@ <h3 id="active-term" th:data-active-term-id = "${activeTerm.id}" th:text="${acti
</div>
<div th:fragment="termDataUnavailable">
<div th:if="${impersonationModel.includeSisSectionsInParentWithCrosslistSections && hasAlienBlocked != null && hasAlienBlocked}">
<h2 class="rvt-ts-26">Unavailable Sections</h2>
<h2 class="rvt-ts-26 rvt-m-top-md">Unavailable Sections</h2>
<p id="unavailableSections">The section(s) below cannot be cross-listed until the cross-listed sections in their parent course(s) have been removed.</p>
<div id="dataDiv2">
<div th:unless="${sectionsMap.isEmpty()}" th:each="mapInstance : ${sectionsMap}">
Expand Down
9 changes: 3 additions & 6 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h2 class="rvt-ts-26">Cross-listed Sections</h2>
</div>
<div class="rvt-cols-8-md bp_checkboxes">
<h2 class="rvt-ts-26">Available Sections</h2>
<div th:if="${impersonationModel == null || impersonationModel.username == null}" class="rvt-flex rvt-m-bottom-md">
<div th:if="${impersonationModel == null || impersonationModel.username == null}" class="rvt-flex rvt-m-bottom-sm">
<span class="rvt-m-right-sm" id="include-crosslisted">
Show already cross-listed sections
</span>
Expand All @@ -104,12 +104,9 @@ <h2 class="rvt-ts-26">Available Sections</h2>
</div>
<div id="unavailable-sections-load" th:attr="data-urlbase=@{|/app/${courseId}/loadUnavailableSections/|}">
</div>
<div id="unavailable-loading">
<div class="rvt-loader rvt-loader--sm" aria-label="Content loading"></div>
</div>
<div th:if="${multiTermEnabled}">
<div th:if="${multiTermEnabled}" class="rvt-m-top-md">
<h2 class="rvt-sr-only">View additional terms</h2>
<label for="addTerm" id="addTerms" class="rvt-label">Add a term to choose additional sections:</label>
<label for="addTerm" id="addTerms" class="rvt-label rvt-m-bottom-xs">Add a term to choose additional sections:</label>
<select id="addTerm" class="rvt-select rvt-width-sm" th:attr="data-urlbase=@{|/app/${courseId}/loadTerm/|}">
<option>- Select a Term -</option>
<option th:each="term : ${selectableTerms}" th:value="${term.id}" th:text="${term.name}">TERMNAME ####</option>
Expand Down

0 comments on commit 58475e7

Please sign in to comment.