From 4c73478cf06fa7df932cb23bfdf6ac482d3ad573 Mon Sep 17 00:00:00 2001 From: Michael Gurley Date: Sun, 5 Oct 2014 14:54:27 -0500 Subject: [PATCH] Set the default of the date picker for editing an abstraction to 100 years ago. Will need to be solved for real by #56 --- app/assets/javascripts/abstractor/abstractor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/abstractor/abstractor.js b/app/assets/javascripts/abstractor/abstractor.js index e8c58af..a1bb7ed 100644 --- a/app/assets/javascripts/abstractor/abstractor.js +++ b/app/assets/javascripts/abstractor/abstractor.js @@ -11,7 +11,8 @@ Abstractor.AbstractionUI = function(){ altFormat: 'yy-mm-dd', dateFormat: 'yy-mm-dd', changeMonth: true, - changeYear: true + changeYear: true, + yearRange: "-100:+0" }); }); parent_div.addClass('highlighted');