From eb53b50cf844ba7bfe3bf5f069cd6a9d80be868e Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 12 May 2016 12:27:11 -0400 Subject: [PATCH] LP#1581126: webstaff: make egDateInput respect format.date OUS This patch makes the egDateInput directive fetch the date format from the format.date library setting. The directive also now accepts a dateFormat attribute for cases where there is a reason to override the library setting. If no format is set via library setting or in how the directive is invoked, the format defaults to "mediumDate", e.g., "May 2, 1999". To test: [1] Open the webstaff patron registration form. Verify that date widgets display the date in the format that corresponds to the value of the format.date library setting for the current work station, or (if the library setting is not set, "Month day, year". Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/share/t_datetime.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/services/ui.js | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/staff/share/t_datetime.tt2 b/Open-ILS/src/templates/staff/share/t_datetime.tt2 index 0e837f1f85..cc0afbf001 100644 --- a/Open-ILS/src/templates/staff/share/t_datetime.tt2 +++ b/Open-ILS/src/templates/staff/share/t_datetime.tt2 @@ -5,7 +5,7 @@