summaryrefslogtreecommitdiff
path: root/js/Feeds.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-16 06:38:41 +0300
committerAndrew Dolgov <[email protected]>2020-09-16 06:38:41 +0300
commitf693ebab21cc60f0290bea201c0dd05cd019669e (patch)
tree428af8e380f8bb80d38ac1438369375290245e48 /js/Feeds.js
parent77faa5d5237db83056d842aa0993b8d8e44375f4 (diff)
fix default password nag dialog, load via xhr
Diffstat (limited to 'js/Feeds.js')
-rw-r--r--js/Feeds.js34
1 files changed, 18 insertions, 16 deletions
diff --git a/js/Feeds.js b/js/Feeds.js
index 49b5e0c2d..9259cd547 100644
--- a/js/Feeds.js
+++ b/js/Feeds.js
@@ -226,23 +226,25 @@ const Feeds = {
if (dijit.byId("defaultPasswordDlg"))
dijit.byId("defaultPasswordDlg").destroyRecursive();
- const dialog = new dijit.Dialog({
- title: __("Your password is at default value"),
- href: "backend.php?op=dlg&method=defaultpasswordwarning",
- id: 'defaultPasswordDlg',
- style: "width: 600px",
- onCancel: function () {
- return true;
- },
- onExecute: function () {
- return true;
- },
- onClose: function () {
- return true;
- }
- });
+ xhrPost("backend.php", {op: 'dlg', method: 'defaultpasswordwarning'}, (transport) => {
+ const dialog = new dijit.Dialog({
+ title: __("Your password is at default value"),
+ content: transport.responseText,
+ id: 'defaultPasswordDlg',
+ style: "width: 600px",
+ onCancel: function () {
+ return true;
+ },
+ onExecute: function () {
+ return true;
+ },
+ onClose: function () {
+ return true;
+ }
+ });
- dialog.show();
+ dialog.show();
+ });
}
// bw_limit disables timeout() so we request initial counters separately