Change input fields to be filled from UTC timestamps
git-svn-id: https://svn.eudat.eu/EUDAT/Services/MetaData/ckanext-datesearch@2719 68e52488-0a15-44bc-a314-416658652264
This commit is contained in:
parent
738f9f4687
commit
9f96c6dd55
|
@ -14,11 +14,11 @@ this.ckan.module('daterangepicker-module', function ($, _) {
|
|||
|
||||
// Populate the datepicker and hidden fields
|
||||
if (param_start) {
|
||||
$('input[name="start"]').val(moment(param_start).years());
|
||||
$('input[name="start"]').val(moment.utc(param_start).years());
|
||||
$('#ext_startdate').val(param_start);
|
||||
}
|
||||
if (param_end) {
|
||||
$('input[name="end"]').val(moment(param_end).years());
|
||||
$('input[name="end"]').val(moment.utc(param_end).years());
|
||||
$('#ext_enddate').val(param_end);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{% resource 'ckanext-datesearch/bootstrap-datepicker.js' %}
|
||||
{% resource 'ckanext-datesearch/daterangepicker-module.js' %}
|
||||
|
||||
{# This <section> is the date-range picker widget in the sidebar. #}
|
||||
<!-- This <section> is the date-range picker widget in the sidebar. -->
|
||||
<section class="module module-narrow module-shallow">
|
||||
<h2 class="module-heading">
|
||||
<i class="icon-medium icon-calendar"></i> {{ _('Filter by date') }}
|
||||
|
|
Loading…
Reference in New Issue