summaryrefslogtreecommitdiff
path: root/js/PrefUsers.js
diff options
context:
space:
mode:
authorGreg <supahgreg@users.noreply.github.com>2025-10-13 23:39:24 -0500
committerGitHub <noreply@github.com>2025-10-13 23:39:24 -0500
commit6505cbb592b91556ca25a2bf72ad1d8cb0b3bc2a (patch)
tree8ab133cc17a329ef7d99d152b3f6b4edc3830509 /js/PrefUsers.js
parent0d2b1d601294802286aa26e5486c1c4fee92c05a (diff)
parent8b46ab31a96b6b6129f624719ac33ddf761805f1 (diff)
Merge pull request #42 from tt-rss/bugfix/eslint-config-and-findings
Get ESLint 9.x working, make the new config stricter, address findings
Diffstat (limited to 'js/PrefUsers.js')
-rw-r--r--js/PrefUsers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/PrefUsers.js b/js/PrefUsers.js
index e8f4a7489..73e48b52f 100644
--- a/js/PrefUsers.js
+++ b/js/PrefUsers.js
@@ -1,6 +1,6 @@
'use strict'
-/* global __, xhr, dijit, Notify, Tables, App, fox */
+/* global __, xhr, Notify, Tables, App, fox */
const Users = {
reload: function(sort) {
@@ -32,7 +32,7 @@ const Users = {
edit: function(id) {
xhr.json('backend.php', {op: 'Pref_Users', method: 'edit', id: id}, (reply) => {
const user = reply.user;
- const admin_disabled = (user.id == 1);
+ const admin_disabled = (user.id === 1);
const dialog = new fox.SingleUseDialog({
id: "userEditDlg",
@@ -132,7 +132,7 @@ const Users = {
resetSelected: function() {
const rows = this.getSelection();
- if (rows.length == 0) {
+ if (rows.length === 0) {
alert(__("No users selected."));
return;
}