From 6630e50ecffd1bd4a96a48bd6b2fe3b673bdbebf Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Wed, 18 Oct 2017 22:49:16 +0200 Subject: [PATCH 1/2] Bugfix:useless li end tag in posted_date_widget.tpl --- view/templates/posted_date_widget.tpl | 36 +++++++++++++++------------ 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/view/templates/posted_date_widget.tpl b/view/templates/posted_date_widget.tpl index c4c9937e6..2fd3cca4d 100644 --- a/view/templates/posted_date_widget.tpl +++ b/view/templates/posted_date_widget.tpl @@ -1,22 +1,26 @@ + 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; +} + +

{{$title}}

-
- + {{/if}} From 8cc17bdde6281d4827e0ff66f2b9d23116f64558 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 19 Oct 2017 00:52:01 +0200 Subject: [PATCH 2/2] fix coding style --- view/templates/posted_date_widget.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/view/templates/posted_date_widget.tpl b/view/templates/posted_date_widget.tpl index 2fd3cca4d..31732185d 100644 --- a/view/templates/posted_date_widget.tpl +++ b/view/templates/posted_date_widget.tpl @@ -5,8 +5,7 @@ function showHideDates() { $('#posted-date-dropdown').hide(); $('#posted-date-collapse').html(window.showMore); - } - else { + } else { $('#posted-date-dropdown').show(); $('#posted-date-collapse').html(window.showFewer); }