Make left sidebar HTML more standards-compliant

(imported from commit 4cfc7789d4b930ea074596ddf06d16638e91c9a2)
This commit is contained in:
Zev Benjamin 2013-02-26 15:30:06 -05:00
parent 45322a2791
commit e7604e170a
3 changed files with 10 additions and 8 deletions

View File

@ -107,16 +107,14 @@ var people_list = [
</div>
</div>
<div class="bottom_sidebar">
<ul class="filters">
<div id="global_filters">
<ul id="global_filters" class="filters">
{# Special-case this link so we don't actually go to page top. #}
<li data-name="home" class="active-filter"><a href="#">Home <span class="count">(<span class="value"></span>)</span></a></li>
<li data-name="all" class="hidden-filter"><a href="#narrow/in/all">All messages <span class="count">(<span class="value"></span>)</span></a></li>
<li data-name="private" ><a href="#narrow/is/private-message">All private messages <span class="count">(<span class="value"></span>)</span></a></li>
</div>
</ul>
<hr id="stream_filters_sep">
<div id="stream_filters" class="scrolling_list"></div>
</ul>
<ul id="stream_filters" class="filters scrolling_list"></ul>
</div>
</div>
</div>

View File

@ -892,7 +892,7 @@ $(function () {
function sort_narrow_list() {
var items = $('#stream_filters li').get();
var div = $('#stream_filters');
var parent = $('#stream_filters');
items.sort(function(a,b){
var keyA = $(a).text();
var keyB = $(b).text();
@ -902,10 +902,10 @@ function sort_narrow_list() {
return 0;
});
div.empty();
parent.empty();
$.each(items, function(i, li){
div.append(li);
parent.append(li);
});
}

View File

@ -138,6 +138,10 @@ a:hover code {
margin-top: 1em;
}
#stream_filters_sep {
margin: 10px 14px 10px 25px;
}
#stream_filters {
overflow-y: hidden;
}