From b46d4eaac2a6b023c2cde2a1642ef61cb8206548 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 16 Mar 2018 09:52:50 -0400 Subject: [PATCH] LP#1766716 Supporting functionality added to date/time picker and progress dialog Here the date/time picker is given the ability to dynamically hide the time picking component when show-time-picker is in effect. This allows an interface to use the time picker based on ephemeral state information and to hide it when not useful. Additionally, the progress dialog now takes an optional label property that can be passed to both open() and update(), so that textual information can be provided along with the numeric and visual progress data. Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/share/t_datetime.tt2 | 3 ++- Open-ILS/src/templates/staff/share/t_progress_dialog.tt2 | 6 ++++++ Open-ILS/web/js/ui/default/staff/services/ui.js | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/staff/share/t_datetime.tt2 b/Open-ILS/src/templates/staff/share/t_datetime.tt2 index 492fa1c82f..903214df7f 100644 --- a/Open-ILS/src/templates/staff/share/t_datetime.tt2 +++ b/Open-ILS/src/templates/staff/share/t_datetime.tt2 @@ -30,7 +30,8 @@
+
+
+

{{data.label}}

+
+
+
diff --git a/Open-ILS/web/js/ui/default/staff/services/ui.js b/Open-ILS/web/js/ui/default/staff/services/ui.js index 95a1f48e2e..3562e4a0f2 100644 --- a/Open-ILS/web/js/ui/default/staff/services/ui.js +++ b/Open-ILS/web/js/ui/default/staff/services/ui.js @@ -412,6 +412,8 @@ function($timeout , $parse) { egProgressData.max = args.max; if (args.value != undefined) egProgressData.value = args.value; + if (args.label != undefined) + egProgressData.label = args.label; } // Increment the current value. If no amount is specified, @@ -1199,6 +1201,7 @@ function($uibModal , $interpolate , egCore) { ngDisabled : '=', ngRequired : '=', hideDatePicker : '=', + hideTimePicker : '=?', dateFormat : '=?', outOfRange : '=?', focusMe : '=?' -- 2.43.2