fix default password nag dialog, load via xhr

This commit is contained in:
Andrew Dolgov 2020-09-16 06:38:41 +03:00
parent 77faa5d523
commit f693ebab21
1 changed files with 18 additions and 16 deletions

View File

@ -226,23 +226,25 @@ const Feeds = {
if (dijit.byId("defaultPasswordDlg")) if (dijit.byId("defaultPasswordDlg"))
dijit.byId("defaultPasswordDlg").destroyRecursive(); dijit.byId("defaultPasswordDlg").destroyRecursive();
const dialog = new dijit.Dialog({ xhrPost("backend.php", {op: 'dlg', method: 'defaultpasswordwarning'}, (transport) => {
title: __("Your password is at default value"), const dialog = new dijit.Dialog({
href: "backend.php?op=dlg&method=defaultpasswordwarning", title: __("Your password is at default value"),
id: 'defaultPasswordDlg', content: transport.responseText,
style: "width: 600px", id: 'defaultPasswordDlg',
onCancel: function () { style: "width: 600px",
return true; onCancel: function () {
}, return true;
onExecute: function () { },
return true; onExecute: function () {
}, return true;
onClose: function () { },
return true; onClose: function () {
} return true;
}); }
});
dialog.show(); dialog.show();
});
} }
// bw_limit disables timeout() so we request initial counters separately // bw_limit disables timeout() so we request initial counters separately