fix default password nag dialog, load via xhr

master
Andrew Dolgov 4 years ago
parent 77faa5d523
commit f693ebab21

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

Loading…
Cancel
Save