From: Bill Erickson Date: Thu, 21 Sep 2017 15:53:11 +0000 (-0400) Subject: LP#1622696 Prompt dialog format and promise repairs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4ee4b0b72076c53709f225ee4bc7edbeea410b01;p=working%2FEvergreen.git 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 --- 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 @@