Accordion HTML cleanup, removing old markup
This commit is contained in:
@@ -13,10 +13,6 @@ var edx = edx || {},
|
||||
},
|
||||
|
||||
openAccordion: function() {
|
||||
$('#open_close_accordion a').click();
|
||||
$('.course-wrapper').removeClass('closed');
|
||||
$('#accordion').show();
|
||||
|
||||
navigation.checkForCurrent();
|
||||
navigation.listenForClick();
|
||||
},
|
||||
|
||||
@@ -165,9 +165,6 @@ ${fragment.foot_html()}
|
||||
|
||||
% if disable_accordion is UNDEFINED or not disable_accordion:
|
||||
<div class="course-index" role="navigation">
|
||||
<header id="open_close_accordion">
|
||||
<a href="#">${_("close")}</a>
|
||||
</header>
|
||||
|
||||
% if settings.FEATURES.get('ENABLE_COURSEWARE_SEARCH'):
|
||||
<div id="courseware-search-bar" class="search-bar courseware-search-bar" role="search" aria-label="Course">
|
||||
@@ -186,7 +183,7 @@ ${fragment.foot_html()}
|
||||
</div>
|
||||
% endif
|
||||
|
||||
<div id="accordion" style="display: none">
|
||||
<div id="accordion">
|
||||
<nav aria-label="${_('Course Navigation')}">
|
||||
% if accordion.strip():
|
||||
${accordion}
|
||||
|
||||
Reference in New Issue
Block a user