mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Move posted date widget to Content\Widget
This commit is contained in:
parent
5c2cca432f
commit
d27d4d8927
5 changed files with 76 additions and 87 deletions
|
@ -1,5 +1,4 @@
|
|||
<script>
|
||||
|
||||
function showHideDates() {
|
||||
if( $('#posted-date-selector-drop').is(':visible')) {
|
||||
$('#posted-date-selector-drop').hide();
|
||||
|
@ -10,14 +9,8 @@ function showHideDates() {
|
|||
$('#posted-date-collapse').html(window.showFewer);
|
||||
}
|
||||
}
|
||||
|
||||
function dateSubmit(dateurl) {
|
||||
window.location.href = dateurl;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<div id="datebrowse-sidebar" class="widget">
|
||||
<h3>{{$title}}</h3>
|
||||
<ul id="posted-date-selector" class="datebrowse-ul">
|
||||
|
@ -35,7 +28,7 @@ function dateSubmit(dateurl) {
|
|||
<ul class="datebrowse-ul">
|
||||
{{foreach $arr as $d}}
|
||||
<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="{{$url}}/{{$d.1}}/{{$d.2}}">{{$d.0}}</a>
|
||||
</li>
|
||||
{{/foreach}}
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue