]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix:useless li end tag in posted_date_widget.tpl
authorrabuzarus <>
Wed, 18 Oct 2017 20:49:16 +0000 (22:49 +0200)
committerrabuzarus <>
Wed, 18 Oct 2017 20:49:16 +0000 (22:49 +0200)
view/templates/posted_date_widget.tpl

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