diff options
author | Andrew Dolgov <[email protected]> | 2020-06-04 23:27:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-06-04 23:27:22 +0300 |
commit | 88027d7a3913872c16f42cb9d9d713aa994eb034 (patch) | |
tree | 1fe058c07c0e5d532c063bd0e4e7b69a47096ae2 /js/PrefHelpers.js | |
parent | 755662a9d756fffa225343da847de2a36f464c7b (diff) |
fix various minor issues reported by eslint
Diffstat (limited to 'js/PrefHelpers.js')
-rw-r--r-- | js/PrefHelpers.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js index 21e07bc26..12710bc6a 100644 --- a/js/PrefHelpers.js +++ b/js/PrefHelpers.js @@ -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 |