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 @@
* 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 {
......
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