Skip to content
Snippets Groups Projects
Commit e7bd5dc7 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

use standard dialog, re #748

parent 7a0b08e6
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
* Refer to the according function definitions for further info. * Refer to the according function definitions for further info.
* ------------------------------------------------------------------------ */ * ------------------------------------------------------------------------ */
import { $gettext } from './gettext.js'; import { $gettext } from './gettext.js';
import Dialog from './dialog.js';
let active = false; let active = false;
let lastAjaxDuration = 200; //ms of the duration of an ajax-call let lastAjaxDuration = 200; //ms of the duration of an ajax-call
...@@ -174,16 +175,16 @@ function poll(forced) { ...@@ -174,16 +175,16 @@ function poll(forced) {
$(this).dialog('close'); $(this).dialog('close');
}; };
$('<div>') Dialog.show(
.html(message) $('<div>')
.css({ .html(message)
textAlign: 'center', .css({
padding: '2em 0' textAlign: 'center',
}) padding: '2em 0'
.dialog({ }),
width: '50%', {
modal: true,
buttons: buttons, buttons: buttons,
size: 'auto',
title: $gettext('Sie sind nicht mehr im System angemeldet.') title: $gettext('Sie sind nicht mehr im System angemeldet.')
}); });
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment