Commit 50a7db7d authored by Prosper De Laure's avatar Prosper De Laure
Browse files

Date homogenisation

parent 3ca5234f
......@@ -412,7 +412,7 @@
value = valueInput.val();
break;
case "date" :
value = valueInput.datepicker({ dateFormat: 'yy-mm-dd'}).val();
value = valueInput.data('datepicker').getFormattedDate('yyyy-mm-dd');
break;
case "number" :
value = parseInt(valueInput.val());
......@@ -439,7 +439,7 @@
archiveId : ArchiveInformation.archiveId,
originatorArchiveId : $('#inputOriginatorArchiveId').val(),
archiveName : $('#inputArchiveName').val(),
originatingDate : $('#inputOriginatingDate').datepicker({ dateFormat: 'yy-mm-dd' }).val(),
originatingDate : $('#inputOriginatingDate').data('datepicker').getFormattedDate('yyyy-mm-dd'),
description : JSON.stringify(descriptionFields)
};
......
......@@ -114,7 +114,7 @@
$("#" + uniqId + "Panel").find("[data-search-tabContent] .datePicker").each(function() {
var cloneDatepicker = $(this);
if (baseDatepicker.attr('data-datepicker-id') == cloneDatepicker.attr('data-datepicker-id')) {
cloneDatepicker.replaceWith(baseDatepicker.clone(false).datepicker({language:$('#wrapper').attr('lang'), autoclose: true}).appendTo(cloneDatepicker.parent()));
cloneDatepicker.replaceWith(baseDatepicker.clone(false).datepicker(DatePickerParams).appendTo(cloneDatepicker.parent()));
}
});
});
......
......@@ -109,9 +109,8 @@
</div>
</nav>
<script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPLv3 or later */
function load(url, data)
{
var loading = false;
......@@ -238,7 +237,6 @@
loading = setTimeout(function() {
ajaxEnd(activeButtons, button, icon);
})
}
var errorFunction = request.error;
......
......@@ -380,10 +380,7 @@
case 'date':
field = template.find('.value');
field.attr('placeholder', $('#date_text').text());
field.datepicker({
language:$('#wrapper').attr('lang'),
autoclose:true
});
field.datepicker(DatePickerParams);
break;
case 'boolean':
var template = $('#customBooleanFieldTemplate').clone();
......
......@@ -351,7 +351,7 @@
var retentionRuleCode = $("#retentionRuleCode").find(':selected').data('json');
var retentionRules = "";
var retentionRuleTable = $('#retentionRuleTable');
console.log(retentionRuleCode);
if (retentionRuleCode) {
var retentionRuleDurationUnit = retentionRuleCode.duration.substr(retentionRuleCode.duration.length - 1, 1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment