From: Mike Rylander Date: Fri, 16 Mar 2018 13:52:50 +0000 (-0400) Subject: LP#1766716 Supporting functionality added to date/time picker and progress dialog X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b46d4eaac2a6b023c2cde2a1642ef61cb8206548;p=evergreen%2Fequinox.git 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 --- 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 : '=?'