mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:55:56 +00:00
migrate a bunch of xhrPost invocations
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use strict'
|
||||
|
||||
/* eslint-disable no-new */
|
||||
/* global __, ngettext, App, Headlines, xhrPost, xhrJson, dojo, dijit, PluginHost, Notify, fox */
|
||||
/* global __, ngettext, App, Headlines, xhr, dojo, dijit, PluginHost, Notify, fox */
|
||||
|
||||
const Article = {
|
||||
_scroll_reset_timeout: false,
|
||||
@@ -331,13 +331,11 @@ const Article = {
|
||||
if (this.validate()) {
|
||||
Notify.progress("Saving article tags...", true);
|
||||
|
||||
xhrPost("backend.php", this.attr('value'), (transport) => {
|
||||
xhr.json("backend.php", this.attr('value'), (data) => {
|
||||
try {
|
||||
Notify.close();
|
||||
dialog.hide();
|
||||
|
||||
const data = JSON.parse(transport.responseText);
|
||||
|
||||
if (data) {
|
||||
const id = data.id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user