1
0
Fork 0

Merge pull request #3809 from rabuzarus/20171018_-_fix_posted_date_widget

Bugfix: useless li end tag in posted_date_widget.tpl
This commit is contained in:
Michael Vogel 2017-10-19 07:50:45 +02:00 committed by GitHub
commit b78996416c

View file

@ -1,22 +1,25 @@
<script> <script>
function showHideDates() { function showHideDates() {
if( $('#posted-date-dropdown').is(':visible')) { if( $('#posted-date-dropdown').is(':visible')) {
$('#posted-date-dropdown').hide(); $('#posted-date-dropdown').hide();
$('#posted-date-collapse').html(window.showMore); $('#posted-date-collapse').html(window.showMore);
} } else {
else { $('#posted-date-dropdown').show();
$('#posted-date-dropdown').show(); $('#posted-date-collapse').html(window.showFewer);
$('#posted-date-collapse').html(window.showFewer); }
} }
}
</script> function dateSubmit(dateurl) {
window.location.href = dateurl;
}
</script>
<div id="datebrowse-sidebar" class="widget"> <div id="datebrowse-sidebar" class="widget">
<h3>{{$title}}</h3> <h3>{{$title}}</h3>
<script>function dateSubmit(dateurl) { window.location.href = dateurl; } </script>
<ul id="posted-date-selector" class="datebrowse-ul"> <ul id="posted-date-selector" class="datebrowse-ul">
{{foreach $dates as $y => $arr}} {{foreach $dates as $y => $arr}}
{{if $y == $cutoff_year}} {{if $y == $cutoff_year}}
@ -31,7 +34,7 @@ function showHideDates() {
<ul class="posted-date-selector-months datebrowse-ul"> <ul class="posted-date-selector-months datebrowse-ul">
{{foreach $arr as $d}} {{foreach $arr as $d}}
<li class="tool"> <li class="tool">
<a class="datebrowse-link" href="#" onclick="dateSubmit('{{$url}}/{{$d.1}}/{{$d.2}}'); return false;">{{$d.0}}</a></li> <a class="datebrowse-link" href="#" onclick="dateSubmit('{{$url}}/{{$d.1}}/{{$d.2}}'); return false;">{{$d.0}}</a>
</li> </li>
{{/foreach}} {{/foreach}}
</ul> </ul>
@ -39,9 +42,9 @@ function showHideDates() {
{{/foreach}} {{/foreach}}
{{if $cutoff}} {{if $cutoff}}
</div> </div>
<ul class="datebrowse-ul"> <ul class="datebrowse-ul">
<li onclick="showHideDates(); return false;" id="posted-date-collapse" class="fakelink tool">{{$showmore}}</li> <li onclick="showHideDates(); return false;" id="posted-date-collapse" class="fakelink tool">{{$showmore}}</li>
</ul> </ul>
{{/if}} {{/if}}
</ul> </ul>
</div> </div>