From 094bb6e33423738cdbb4737d1025dad8361ae32a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 29 May 2019 14:36:08 +0200 Subject: [news] Use date/time selection for expiry, not duration in hrs --- modules-available/news/templates/page-news.html | 41 ++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 4 deletions(-) (limited to 'modules-available/news/templates/page-news.html') diff --git a/modules-available/news/templates/page-news.html b/modules-available/news/templates/page-news.html index 0543a414..1c944cb8 100644 --- a/modules-available/news/templates/page-news.html +++ b/modules-available/news/templates/page-news.html @@ -14,9 +14,30 @@ {{/withTitle}} -
{{lang_created}} | {{lang_expires}} | {{lang_title}} | @@ -59,7 +81,8 @@||
---|---|---|---|---|
{{#active}}{{/active}} | {{dateline_s}} | {{expires_s}} |
|
@@ -96,5 +119,15 @@ document.addEventListener("DOMContentLoaded", function () {
{{#hasSummernote}}
$('.summernote[readonly]').each(function() { $(this).summernote('disable'); });
{{/hasSummernote}}
+ var dateSettings = {
+ format: 'yyyy-mm-dd',
+ todayHighlight: true,
+ };
+ $('.datepicker').datepicker(dateSettings);
+ var chf = function() {
+ $('#enddate, #endtime').prop('disabled', $('#infinite-checkbox').is(':checked'));
+ };
+ $('#infinite-checkbox').change(chf);
+ chf();
}, false);
// -->
\ No newline at end of file
--
cgit v1.2.3-55-g7522