use native date picker instead of jquery UI, #203

This commit is contained in:
azivner 2018-11-05 21:20:05 +01:00
parent 24a1838b13
commit 19cb29cdca

View file

@ -352,14 +352,7 @@ async function showAttributes() {
}
}
else if (definition.labelType === 'date') {
$input.prop("type", "text");
$input.datepicker({
changeMonth: true,
changeYear: true,
yearRange: "c-200:c+10",
dateFormat: "yy-mm-dd"
});
$input.prop("type", "date");
const $todayButton = $("<button>").addClass("btn btn-sm").text("Today").click(() => {
$input.val(utils.formatDateISO(new Date()));