diff --git a/app/assets/javascripts/repositories/renderers/columns/date_time_helper.js b/app/assets/javascripts/repositories/renderers/columns/date_time_helper.js index 7c1712ca2..ca24ce672 100644 --- a/app/assets/javascripts/repositories/renderers/columns/date_time_helper.js +++ b/app/assets/javascripts/repositories/renderers/columns/date_time_helper.js @@ -58,6 +58,7 @@ var DateTimeHelper = (function() { let endTime = endTimeContainer.find('input[type=hidden]').val(); let formId = startTimeContainer.find('input[type!=hidden]').data('form-id'); let columnId = startTimeContainer.find('input[type!=hidden]').data('column-id'); + let dataType = $container.find('.cell-range-container').data('type'); let json = {}; let hiddenField; let value; @@ -75,7 +76,8 @@ var DateTimeHelper = (function() { `; + value='${value}' + data-type="${dataType}"/>`; $container.find('.cell-range-container').html(hiddenField); startTimeContainer.find('.cell-timestamp-container').html(''); @@ -106,6 +108,7 @@ var DateTimeHelper = (function() { let hiddenFieldContainer = $input.parent().find('.cell-timestamp-container'); let hasTime = isValidTimeStr(timeStr); let hasDate = isValidDate(date); + let dataType = $container.data('type'); let value; let hiddenField; @@ -124,7 +127,8 @@ var DateTimeHelper = (function() { `; + value="${value}" + data-type="${dataType}"/>`; hiddenFieldContainer.html(hiddenField); } @@ -191,7 +195,7 @@ var DateTimeHelper = (function() { function initDateEditMode(formId, columnId, $cell, date, datetime) { let inputFields = `