From 659390493d08fe62d97f1fb48ff68d5e15a534fb Mon Sep 17 00:00:00 2001 From: Neel Patel Date: Thu, 5 Apr 2018 11:28:18 +0100 Subject: [PATCH] Ensure Alertify dialogues are modal to prevent them being closed by mis-click. Fixes #3248 --- docs/en_US/release_notes_3_0.rst | 3 ++- web/pgadmin/static/js/alertify.pgadmin.defaults.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_3_0.rst b/docs/en_US/release_notes_3_0.rst index 1a3a9eae7..b41bd37f0 100644 --- a/docs/en_US/release_notes_3_0.rst +++ b/docs/en_US/release_notes_3_0.rst @@ -114,4 +114,5 @@ Bug fixes | `Bug #3200 `_ - Ensure the host parameter is correctly pickup up from the service file | `Bug #3219 `_ - Update required ChromeDriver version for current versions of Chrome | `Bug #3226 `_ - Move the field error indicators in front of the affected fields so they don't obscure spinners or drop downs etc. -| `Bug #3244 `_ - Show more granular timing info in the query tool history panel \ No newline at end of file +| `Bug #3244 `_ - Show more granular timing info in the query tool history panel +| `Bug #3248 `_ - Ensure Alertify dialogues are modal to prevent them being closed by mis-click \ No newline at end of file diff --git a/web/pgadmin/static/js/alertify.pgadmin.defaults.js b/web/pgadmin/static/js/alertify.pgadmin.defaults.js index d2c1591ba..0d754ceac 100644 --- a/web/pgadmin/static/js/alertify.pgadmin.defaults.js +++ b/web/pgadmin/static/js/alertify.pgadmin.defaults.js @@ -5,6 +5,7 @@ define([ alertify.defaults.theme.ok = 'btn btn-primary'; alertify.defaults.theme.cancel = 'btn btn-danger'; alertify.defaults.theme.input = 'form-control'; + alertify.defaults.closable = false; alertify.pgIframeDialog || alertify.dialog('pgIframeDialog', function() { var iframe; return {