From 4ee4b0b72076c53709f225ee4bc7edbeea410b01 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 21 Sep 2017 11:53:11 -0400 Subject: [PATCH] LP#1622696 Prompt dialog format and promise repairs Improve egPromptDialog formatting by wrapping the column div in a row div. This helps the text input site nicely in the middle of the dialog without overlaps. Allow for the creation of egPromptDialog without a user-defined scope. Pass the result of an egPromptDialog to the dialog resolver in addition to the optional user-defined scope.ok function. The 2 above changes reduce the amount of boilerplate code required to collect the dialog value. For example: egPromptDialog.open(msg, default_val).result .then(function(prompt_value) { ... }); Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/share/t_prompt_dialog.tt2 | 7 +++++-- Open-ILS/web/js/ui/default/staff/services/ui.js | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/staff/share/t_prompt_dialog.tt2 b/Open-ILS/src/templates/staff/share/t_prompt_dialog.tt2 index 9581bcce64..6fa9e5bf9f 100644 --- a/Open-ILS/src/templates/staff/share/t_prompt_dialog.tt2 +++ b/Open-ILS/src/templates/staff/share/t_prompt_dialog.tt2 @@ -8,8 +8,11 @@