diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2022-03-03 18:13:35 +0100 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2022-03-11 15:36:47 +0000 |
| commit | e7bd5dc7681fc3c93aecb5625545f8930bdd52d3 (patch) | |
| tree | e15663b60b3264d2812bd5d752ccc36dc55858ac | |
| parent | 7a0b08e6934522cb80505470fa9c4da3eeef109d (diff) | |
use standard dialog, re #748
| -rw-r--r-- | resources/assets/javascripts/lib/jsupdater.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/resources/assets/javascripts/lib/jsupdater.js b/resources/assets/javascripts/lib/jsupdater.js index cb75540..9469fcc 100644 --- a/resources/assets/javascripts/lib/jsupdater.js +++ b/resources/assets/javascripts/lib/jsupdater.js @@ -11,6 +11,7 @@ * Refer to the according function definitions for further info. * ------------------------------------------------------------------------ */ import { $gettext } from './gettext.js'; +import Dialog from './dialog.js'; let active = false; let lastAjaxDuration = 200; //ms of the duration of an ajax-call @@ -174,16 +175,16 @@ function poll(forced) { $(this).dialog('close'); }; - $('<div>') - .html(message) - .css({ - textAlign: 'center', - padding: '2em 0' - }) - .dialog({ - width: '50%', - modal: true, + Dialog.show( + $('<div>') + .html(message) + .css({ + textAlign: 'center', + padding: '2em 0' + }), + { buttons: buttons, + size: 'auto', title: $gettext('Sie sind nicht mehr im System angemeldet.') }); } else { |
