From e7bd5dc7681fc3c93aecb5625545f8930bdd52d3 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Thu, 3 Mar 2022 18:13:35 +0100 Subject: [PATCH] use standard dialog, re #748 --- resources/assets/javascripts/lib/jsupdater.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/resources/assets/javascripts/lib/jsupdater.js b/resources/assets/javascripts/lib/jsupdater.js index cb75540eaa4..9469fccbb46 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 { -- GitLab