batchsubscribe: xhr

This commit is contained in:
Andrew Dolgov 2021-02-12 18:40:22 +03:00
parent 03b85248e6
commit 9330bde991
1 changed files with 9 additions and 1 deletions

View File

@ -359,7 +359,15 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
});
}
},
href: "backend.php?" + dojo.objectToQuery({op: 'pref-feeds', method: 'batchSubscribe'})
content: __("Loading, please wait...")
});
const tmph = dojo.connect(dialog, 'onShow', function () {
dojo.disconnect(tmph);
xhrPost("backend.php", {op: 'pref-feeds', method: 'batchSubscribe'}, (transport) => {
dialog.attr('content', transport.responseText);
})
});
dialog.show();