LP#1622696 Prompt dialog format and promise repairs
authorBill Erickson <berickxx@gmail.com>
Thu, 21 Sep 2017 15:53:11 +0000 (11:53 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Sep 2017 15:57:57 +0000 (11:57 -0400)
commit4ee4b0b72076c53709f225ee4bc7edbeea410b01
tree44f1f4ec9007c8069c333a7848867bad28159fea
parentb87a437825a531a3e6977d1e0b17e48d8f41f74a
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 <berickxx@gmail.com>
Open-ILS/src/templates/staff/share/t_prompt_dialog.tt2
Open-ILS/web/js/ui/default/staff/services/ui.js