From 18bb7ff16aee85a83bf3c8d394291290769a6f6b Mon Sep 17 00:00:00 2001 From: lukemelia Date: Sat, 10 Mar 2007 03:32:47 +0000 Subject: [PATCH] Reenable keyboard shortcuts for the date fields. * Adds keyboard shortcuts to the passed in date field: * * 't' input today's date * '+' or '=' increment the date in the field by one day * '-' decrement the date in the field by one day * * If the calendar is visible, the shortcuts play nicely with it. If not, * they still work properly. Pressing '+' when no date is entered in the * field will set the date to tomorrow, and likewise '-' with no date * entered will set the date to yesterday. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@473 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/public/javascripts/calendar-setup.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tracks/public/javascripts/calendar-setup.js b/tracks/public/javascripts/calendar-setup.js index d09ade8d..abaca619 100644 --- a/tracks/public/javascripts/calendar-setup.js +++ b/tracks/public/javascripts/calendar-setup.js @@ -196,10 +196,9 @@ Calendar.setup = function (params) { return false; }; -/* if (params.inputField) { + if (params.inputField) { new DateDueKeyboardShortcutSupport(params.inputField, params.ifFormat, cal); } -*/ return cal; };