summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorMichael <michaelvickers.uk@gmail.com>2018-10-16 01:47:38 +0100
committerfguillot <fred@kanboard.net>2018-10-15 17:47:38 -0700
commit71630aaa77b518d3d0165f772251f09cc249f015 (patch)
tree76f0fcb273d610a87b138481ea54981cb7394e4f /app/Template
parentcc81f9d4f5a9857e024829613ad670bc51056be5 (diff)
Easier closing of dialogs
Allow closing of dialogs by clicking on the background area around it. When the dialog is closed in this manner, if it contains a form with changed data present a warning that there are unsaved changes. Likewise if the user attempts to navigate away from the page, eg page reload, bookmark click, address bar entry. If the dialog does not contain a form or the data remains unchanged no warning messages are shown.
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/layout.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Template/layout.php b/app/Template/layout.php
index 23ae4530..e0e45960 100644
--- a/app/Template/layout.php
+++ b/app/Template/layout.php
@@ -51,6 +51,7 @@
data-js-lang="<?= $this->app->jsLang() ?>"
data-js-date-format="<?= $this->app->getJsDateFormat() ?>"
data-js-time-format="<?= $this->app->getJsTimeFormat() ?>"
+ data-js-modal-close-msg="<?= t('Close window?\\n\\nChanges that you made have not been saved.') ?>"
>
<?php if (isset($no_layout) && $no_layout): ?>