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

remove ok = confirm() thing

This commit is contained in:
Andrew Dolgov
2018-11-30 13:05:59 +03:00
parent fd752a79af
commit da1a3c2cc5
4 changed files with 14 additions and 51 deletions

View File

@@ -1118,9 +1118,7 @@ function backend_sanity_check_callback(transport) {
}
function genUrlChangeKey(feed, is_cat) {
const ok = confirm(__("Generate new syndication address for this feed?"));
if (ok) {
if (confirm(__("Generate new syndication address for this feed?"))) {
notify_progress("Trying to change address...", true);
@@ -1392,12 +1390,8 @@ function showFeedsWithErrors() {
removeSelected: function() {
const sel_rows = this.getSelectedFeeds();
console.log(sel_rows);
if (sel_rows.length > 0) {
const ok = confirm(__("Remove selected feeds?"));
if (ok) {
if (confirm(__("Remove selected feeds?"))) {
notify_progress("Removing selected feeds...", true);
const query = { op: "pref-feeds", method: "remove",