mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:25:59 +00:00
* switch to xhr.post() almost everywhere
* call App.handlerpcjson() automatically on json request (if possible) * show net/log indicators in prefs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* global dojo, xhrPost, Plugins, xhrJson, Notify, fox, __ */
|
||||
/* global dojo, Plugins, xhr, App, Notify, fox, __ */
|
||||
|
||||
Plugins.Note = {
|
||||
edit: function(id) {
|
||||
@@ -33,8 +33,8 @@ Plugins.Note = {
|
||||
const tmph = dojo.connect(dialog, 'onShow', function () {
|
||||
dojo.disconnect(tmph);
|
||||
|
||||
xhrPost("backend.php", App.getPhArgs("note", "edit", {id: id}), (transport) => {
|
||||
dialog.attr('content', transport.responseText);
|
||||
xhr.post("backend.php", App.getPhArgs("note", "edit", {id: id}), (reply) => {
|
||||
dialog.attr('content', reply);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user