kopia lustrzana https://github.com/friendica/friendica
Merge pull request #3815 from rabuzarus/20171019_-_fix_more_posted_date_widget
fix some more HTML violations in posted_date_widget.tplpull/3823/head
commit
2a5dd1e857
|
@ -1,12 +1,12 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function showHideDates() {
|
function showHideDates() {
|
||||||
if( $('#posted-date-dropdown').is(':visible')) {
|
if( $('#posted-date-selector-drop').is(':visible')) {
|
||||||
$('#posted-date-dropdown').hide();
|
$('#posted-date-selector-drop').hide();
|
||||||
$('#posted-date-collapse').html(window.showMore);
|
$('#posted-date-collapse').html(window.showMore);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$('#posted-date-dropdown').show();
|
$('#posted-date-selector-drop').show();
|
||||||
$('#posted-date-collapse').html(window.showFewer);
|
$('#posted-date-collapse').html(window.showFewer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,29 +22,29 @@ function dateSubmit(dateurl) {
|
||||||
<h3>{{$title}}</h3>
|
<h3>{{$title}}</h3>
|
||||||
<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}}
|
||||||
</ul>
|
</ul>
|
||||||
<div id="posted-date-dropdown" style="display: none;">
|
<ul id="posted-date-selector-drop" class="datebrowse-ul" style="display: none;">
|
||||||
<ul id="posted-date-selector-drop" class="datebrowse-ul">
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<li id="posted-date-selector-year-{{$y}}" class="tool">
|
<li id="posted-date-selector-year-{{$y}}" class="tool">
|
||||||
<a class="datebrowse-link" href="#" onclick="openClose('posted-date-selector-{{$y}}'); return false;">{{$y}}</a>
|
<a class="datebrowse-link" href="#" onclick="openClose('posted-date-selector-{{$y}}'); return false;">{{$y}}</a>
|
||||||
</li>
|
</li>
|
||||||
<div id="posted-date-selector-{{$y}}" style="display: none;">
|
<li id="posted-date-selector-{{$y}}" class="tool posted-date-selector-months" style="display: none;">
|
||||||
<ul class="posted-date-selector-months datebrowse-ul">
|
<ul class="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>
|
<a class="datebrowse-link" href="#" onclick="dateSubmit('{{$url}}/{{$d.1}}/{{$d.2}}'); return false;">{{$d.0}}</a>
|
||||||
</li>
|
</li>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</li>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
</ul>
|
||||||
{{if $cutoff}}
|
{{if $cutoff}}
|
||||||
</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>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1036,15 +1036,22 @@ aside .widget li a:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* forumlist widget */
|
/* forumlist widget */
|
||||||
aside #datebrowse-sidebar .posted-date-selector-months{
|
aside > #datebrowse-sidebar li.posted-date-selector-months {
|
||||||
margin-left: 0;
|
margin-bottom: 10px;;
|
||||||
margin-bottom: 10px;
|
padding: 0;
|
||||||
width: 100%
|
width: 100%
|
||||||
}
|
}
|
||||||
aside #datebrowse-sidebar .posted-date-selector-months li{
|
aside > #datebrowse-sidebar li.posted-date-selector-months:hover {
|
||||||
|
border-left: none !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
aside > #datebrowse-sidebar .posted-date-selector-months > ul {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
aside > #datebrowse-sidebar .posted-date-selector-months > ul > li{
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
}
|
}
|
||||||
aside #datebrowse-sidebar .posted-date-selector-months li:hover{
|
aside > #datebrowse-sidebar .posted-date-selector-months > ul > li:hover{
|
||||||
padding-left: 27px;
|
padding-left: 27px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -500,10 +500,10 @@ a.sidebar-group-element {
|
||||||
margin-bottom: 3px;
|
margin-bottom: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.posted-date-selector-months {
|
#datebrowse-sidebar .datebrowse-ul .posted-date-selector-months {
|
||||||
|
padding: 0;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar-ungrouped, .side-link {
|
#sidebar-ungrouped, .side-link {
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue