1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:35:55 +00:00

fix various minor issues reported by eslint

This commit is contained in:
Andrew Dolgov
2020-06-04 23:27:22 +03:00
parent 755662a9d7
commit 88027d7a39
20 changed files with 115 additions and 74 deletions

View File

@@ -1,3 +1,7 @@
'use strict';
/* global __, dijit, dojo, Tables, xhrPost, Notify, xhrJson */
const Helpers = {
AppPasswords: {
getSelected: function() {
@@ -12,16 +16,14 @@ const Helpers = {
if (rows.length == 0) {
alert("No passwords selected.");
} else {
if (confirm(__("Remove selected app passwords?"))) {
} else if (confirm(__("Remove selected app passwords?"))) {
xhrPost("backend.php", {op: "pref-prefs", method: "deleteAppPassword", ids: rows.toString()}, (transport) => {
this.updateContent(transport.responseText);
Notify.close();
});
xhrPost("backend.php", {op: "pref-prefs", method: "deleteAppPassword", ids: rows.toString()}, (transport) => {
this.updateContent(transport.responseText);
Notify.close();
});
Notify.progress("Loading, please wait...");
}
Notify.progress("Loading, please wait...");
}
},
generate: function() {
@@ -132,6 +134,7 @@ const Helpers = {
},
execute: function () {
if (this.validate()) {
//
}
},
href: query