summaryrefslogtreecommitdiff
path: root/js/PrefUsers.js
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-12 21:02:39 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-12 21:34:29 +0000
commit39182a76e4070d3b92af10bf609fef8151bce6e4 (patch)
tree806c6e1b1ab421a2631f5e9062a8988480f8ba31 /js/PrefUsers.js
parent1299d632bdc8b676d3fc2114a1788a2f8f63597c (diff)
Address ESLint rule 'eqeqeq'.
https://eslint.org/docs/latest/rules/eqeqeq
Diffstat (limited to 'js/PrefUsers.js')
-rw-r--r--js/PrefUsers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/PrefUsers.js b/js/PrefUsers.js
index e8f4a7489..362e62662 100644
--- a/js/PrefUsers.js
+++ b/js/PrefUsers.js
@@ -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;
}