mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	use native date picker instead of jquery UI, #203
This commit is contained in:
		@@ -352,14 +352,7 @@ async function showAttributes() {
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else if (definition.labelType === 'date') {
 | 
					            else if (definition.labelType === 'date') {
 | 
				
			||||||
                $input.prop("type", "text");
 | 
					                $input.prop("type", "date");
 | 
				
			||||||
 | 
					 | 
				
			||||||
                $input.datepicker({
 | 
					 | 
				
			||||||
                    changeMonth: true,
 | 
					 | 
				
			||||||
                    changeYear: true,
 | 
					 | 
				
			||||||
                    yearRange: "c-200:c+10",
 | 
					 | 
				
			||||||
                    dateFormat: "yy-mm-dd"
 | 
					 | 
				
			||||||
                });
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                const $todayButton = $("<button>").addClass("btn btn-sm").text("Today").click(() => {
 | 
					                const $todayButton = $("<button>").addClass("btn btn-sm").text("Today").click(() => {
 | 
				
			||||||
                    $input.val(utils.formatDateISO(new Date()));
 | 
					                    $input.val(utils.formatDateISO(new Date()));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user