mirror of
https://gitlab.com/commento/commento.git
synced 2026-11-01 01:16:21 -05:00
dashboard-setting.js: simplified if condition
This commit is contained in:
1 parent
4d82106aff
commit
c9e7a3f40a
1 file changed
+1
-5
@@ -9,11 +9,7 @@
|
||||
var settings = data.settings;
|
||||
|
||||
for (var i = 0; i < settings.length; i++) {
|
||||
if (settings[i].id === id) {
|
||||
settings[i].selected = true;
|
||||
} else {
|
||||
settings[i].selected = false;
|
||||
}
|
||||
settings[i].selected = settings[i].id === id;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user