mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
dashboard-setting.js: simplified if condition
This commit is contained in:

committed by
Adhityaa Chandrasekar

parent
4d82106aff
commit
c9e7a3f40a
@ -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